mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
net: macvlan: remove redundant initialization in macvlan_dev_netpoll_setup
The initialization for err with 0 seems useless, as it is soon updated with -ENOMEM. So, we can remove it. Changes since v1: -Keep -ENOMEM still. Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn> Link: https://lore.kernel.org/r/1604541244-3241-1-git-send-email-dong.menglong@zte.com.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ea8146c684
commit
419a38cecf
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,7 @@ static int macvlan_dev_netpoll_setup(struct net_device *dev, struct netpoll_info
|
|||
struct macvlan_dev *vlan = netdev_priv(dev);
|
||||
struct net_device *real_dev = vlan->lowerdev;
|
||||
struct netpoll *netpoll;
|
||||
int err = 0;
|
||||
int err;
|
||||
|
||||
netpoll = kzalloc(sizeof(*netpoll), GFP_KERNEL);
|
||||
err = -ENOMEM;
|
||||
|
|
Loading…
Reference in a new issue