diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2013-11-29 18:05:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-03 09:03:20 -0800 |
commit | 14f4f4aa90473ece675df56062a9f14efbf00859 (patch) | |
tree | 0c9100ac87701f97d0fa3f92338ada7738b3b619 /drivers/staging/silicom/bpctl_mod.c | |
parent | 5ba21c464b78e924ae74225e4080e42fea4560e8 (diff) | |
download | op-kernel-dev-14f4f4aa90473ece675df56062a9f14efbf00859.zip op-kernel-dev-14f4f4aa90473ece675df56062a9f14efbf00859.tar.gz |
staging: silicom: remove dead code
bus_info field of struct ethtool_drvinfo is an array thus it always
evaluates to true in a boolean context. Therefore operation
depending on it being false will never be executed.
Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/silicom/bpctl_mod.c')
-rw-r--r-- | drivers/staging/silicom/bpctl_mod.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c index 39dc92a..20325f5 100644 --- a/drivers/staging/silicom/bpctl_mod.c +++ b/drivers/staging/silicom/bpctl_mod.c @@ -135,8 +135,6 @@ static int bp_get_dev_idx_bsf(struct net_device *dev, int *index) else return -EOPNOTSUPP; - if (!drvinfo.bus_info) - return -ENODATA; if (!strcmp(drvinfo.bus_info, "N/A")) return -ENODATA; |