Staging: emxx_udc: Remove argument test from function
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Mon, 2 Mar 2015 18:33:18 +0000 (21:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 17:54:26 +0000 (09:54 -0800)
This patch removes the test statement for an argument to  _nbu2ss_pullup
function, for it can't be null due to previous derefrences.

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c

index a9bbf8e3d6ea14179176ed96547b3782ccec3f85..4cc6296ed007a8ea9a4ad45cb67f2a93c909aacf 100644 (file)
@@ -2257,11 +2257,6 @@ static int _nbu2ss_pullup(struct nbu2ss_udc *udc, int is_on)
 {
        u32     reg_dt;
 
-       if (!udc) {
-               ERR("%s, bad param\n", __func__);
-               return -EINVAL;
-       }
-
        if (udc->vbus_active == 0)
                return -ESHUTDOWN;