mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 03:51:48 +00:00
staging: ozwpan: Remove unnecessary pointer check.
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>
This commit is contained in:
parent
0535281e4b
commit
c45905a726
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user