OSDN Git Service

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)
commit96ffa48c7271fe9978bea01eb4784edbfaa3a362
tree7464225dcb4d21d91a3bec4a048c9f783e651bc9
parent3d426daf09a692b87100c0bb84369dd28101eb14
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