net: usb: Initialize retval with zero as it might be used uninitialized
If at the start of usbnet_start_xmit function sk_buff is null then there is a chance that retval could be used uninitialized. To avoid such scenario initialize retval with zero. Change-Id: I2d5b68075338f7d19b6bc76a4ce7cdbe422daadb Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>
This commit is contained in:
parent
d16f8f0f02
commit
7959341099
1 changed files with 1 additions and 1 deletions
|
@ -1364,7 +1364,7 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
|
|||
struct skb_data *entry;
|
||||
struct driver_info *info = dev->driver_info;
|
||||
unsigned long flags;
|
||||
int retval;
|
||||
int retval = 0;
|
||||
|
||||
if (skb)
|
||||
skb_tx_timestamp(skb);
|
||||
|
|
Loading…
Reference in a new issue