mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
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>
This commit is contained in:
parent
5ba21c464b
commit
14f4f4aa90
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue