From: Michal Nazarewicz Date: Fri, 29 Nov 2013 17:05:01 +0000 (+0100) Subject: staging: silicom: remove dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14f4f4aa90473ece675df56062a9f14efbf00859;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silicom/bpctl_mod.c index 39dc92a271ab..20325f53328e 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;