]> git.baikalelectronics.ru Git - kernel.git/commit
staging: emxx_udc: remove unnecessary nullpointer checks
authorArkadiusz Lis <areklis909@gmail.com>
Mon, 24 Sep 2018 17:34:22 +0000 (19:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 19:05:20 +0000 (21:05 +0200)
commit63d684234fcb18c5dd35b57beb03d49f39ee2e89
tree7464225dcb4d21d91a3bec4a048c9f783e651bc9
parent6e958d1acfaf43b7ddb777d657b9f3016b89e7b6
staging: emxx_udc: remove unnecessary nullpointer checks

This patch removes nullpointer checks which are redundant. container_of
returns structure containing entity which we know for sure is not null,
so the whole structure can not be null.

Signed-off-by: Arkadiusz Lis <areklis909@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c