mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
NFC: Remove unneeded pn533 dev NULL check
container_of() works by subtracting the offset of the member. The math can't really return a zero here. Sometimes people check it when they actually meant to check something else but in this case we can just remove the check. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
a202abb1ee
commit
0f90936106
1 changed files with 0 additions and 3 deletions
|
|
@ -394,9 +394,6 @@ static void pn533_wq_cmd_complete(struct work_struct *work)
|
|||
struct pn533_frame *in_frame;
|
||||
int rc;
|
||||
|
||||
if (dev == NULL)
|
||||
return;
|
||||
|
||||
in_frame = dev->wq_in_frame;
|
||||
|
||||
if (dev->wq_in_error)
|
||||
|
|
|
|||
Loading…
Reference in a new issue