]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
greybus: loopback: Drop NULL check on container_of pointer
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 11 Dec 2015 13:46:50 +0000 (13:46 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Sat, 12 Dec 2015 00:16:01 +0000 (16:16 -0800)
commit578a0ab8dd02f1de4b3b0e7b227ff78ae54fa4e1
treeaaf232aa2d3e9018f3f8dd53e8bed3138ac8018c
parent079fa32ba53a205a745e75b045361beeffdfeaba
greybus: loopback: Drop NULL check on container_of pointer

container_of cannot return NULL and the pointer passed to this context uses
reference counter bumped inside a spinlock, so the base pointer will be
valid at this point.

Suggested-by: Johan Hovold <johan@hovoldconstulting.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c