Re: [PATCH 1/9] i2c: Add pointer dereference protection to i2c_match_id()

2014-06-07 Thread Grant Likely
On Fri, 6 Jun 2014 16:52:24 +0100, Lee Jones lee.jo...@linaro.org wrote: Here we're providing dereference protection for i2c_match_id(), which saves us having to do it each time it's called. We're also stripping out the (now) needless checks in i2c_device_match(). This patch paves the way

[PATCH 1/9] i2c: Add pointer dereference protection to i2c_match_id()

2014-06-06 Thread Lee Jones
Here we're providing dereference protection for i2c_match_id(), which saves us having to do it each time it's called. We're also stripping out the (now) needless checks in i2c_device_match(). This patch paves the way for other, similar code trimming. Acked-by: Grant Likely