staging: ozwpan: Remove unnecessary pointer check.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Tue, 13 Aug 2013 17:29:21 +0000 (18:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 21:15:40 +0000 (14:15 -0700)
We are already checking "ep" earlier in function. Do not
need to check again.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozhcd.c

index 2be15f4160ed53a3a53cfcc89eaa8b4893c0ce53..8633f0c3e82e8cf8a2badcc5ae6f026c4a8541d6 100644 (file)
@@ -527,7 +527,7 @@ static int oz_enqueue_ep_urb(struct oz_port *port, u8 ep_addr, int in_dir,
                return 0;
        }
 
-       if (ep && port->hpd) {
+       if (port->hpd) {
                list_add_tail(&urbl->link, &ep->urb_list);
                if (!in_dir && ep_addr && (ep->credit < 0)) {
                        getrawmonotonic(&ep->timestamp);