[RESEND PATCH v4 1/8] i2c: Add pointer dereference protection to i2c_match_id()

2015-09-11 Thread Kieran Bingham
From: 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

[RESEND PATCH v4 1/8] i2c: Add pointer dereference protection to i2c_match_id()

2015-09-11 Thread Kieran Bingham
From: 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.