projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bacb71e
)
staging: et131x: Remove useless assignment to NULL
author
Mark Einon
<mark.einon@gmail.com>
Sun, 14 Sep 2014 15:59:01 +0000
(16:59 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 19 Sep 2014 23:04:52 +0000
(16:04 -0700)
The stack variable skb is no longer used after it's set to
NULL. Don't set it to NULL.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c
patch
|
blob
|
history
diff --git
a/drivers/staging/et131x/et131x.c
b/drivers/staging/et131x/et131x.c
index
8726754
..
3b62f76
100644
(file)
--- a/
drivers/staging/et131x/et131x.c
+++ b/
drivers/staging/et131x/et131x.c
@@
-4121,7
+4121,6
@@
static netdev_tx_t et131x_tx(struct sk_buff *skb, struct net_device *netdev)
drop_err:
dev_kfree_skb_any(skb);
- skb = NULL;
adapter->netdev->stats.tx_dropped++;
return NETDEV_TX_OK;
}