1
0
Fork 0
alistair23-linux/drivers/staging/emxx_udc
Dan Carpenter 716003bb8b staging: emxx_udc: Remove unnecessary NULL checks
These pointers can't be NULL so I have removed the checks.

The checking was sort of problematic as well because it didn't make
sense.  In _nbu2ss_read_request_data() the && should have been ||.  In
nbu2ss_gad_get_frame() we know that "pgadget" is non-NULL and "udc" is
an offset from "pgadget" so it can't be NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-06 04:09:17 -08:00
..
Kconfig staging: emxx_udc: allow modular build 2016-07-26 08:47:08 -07:00
Makefile
TODO staging: emxx_udc: Add TODO file 2014-06-19 14:42:48 -07:00
emxx_udc.c staging: emxx_udc: Remove unnecessary NULL checks 2018-03-06 04:09:17 -08:00
emxx_udc.h staging: emxx_udc: remove redundant license text 2018-01-15 16:03:46 +01:00