projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e472d0
)
[SCSI] fcoe: remove redundant checking of netdev->netdev_ops
author
Yi Zou
<
[email protected]
>
Wed, 21 Oct 2009 23:26:55 +0000
(16:26 -0700)
committer
James Bottomley
<
[email protected]
>
Fri, 4 Dec 2009 18:00:24 +0000
(12:00 -0600)
Remove the redundant checking of netdev->netdev_ops as it will never be NULL.
Signed-off-by: Yi Zou <
[email protected]
>
Signed-off-by: Robert Love <
[email protected]
>
Signed-off-by: James Bottomley <
[email protected]
>
drivers/scsi/fcoe/fcoe.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/fcoe/fcoe.c
b/drivers/scsi/fcoe/fcoe.c
index 704b8e034946f9522b1ccd13c665a560371c0d8b..7c898875838f8a280b8e0247eb6a2b7ccea0d554 100644
(file)
--- a/
drivers/scsi/fcoe/fcoe.c
+++ b/
drivers/scsi/fcoe/fcoe.c
@@
-664,7
+664,7
@@
static int fcoe_ddp_setup(struct fc_lport *lp, u16 xid,
{
struct net_device *n = fcoe_netdev(lp);
- if (n->netdev_ops
&& n->netdev_ops
->ndo_fcoe_ddp_setup)
+ if (n->netdev_ops->ndo_fcoe_ddp_setup)
return n->netdev_ops->ndo_fcoe_ddp_setup(n, xid, sgl, sgc);
return 0;
@@
-681,7
+681,7
@@
static int fcoe_ddp_done(struct fc_lport *lp, u16 xid)
{
struct net_device *n = fcoe_netdev(lp);
- if (n->netdev_ops
&& n->netdev_ops
->ndo_fcoe_ddp_done)
+ if (n->netdev_ops->ndo_fcoe_ddp_done)
return n->netdev_ops->ndo_fcoe_ddp_done(n, xid);
return 0;
}