projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cfb879
)
e100: don't initialize int object to zero
author
Jean Sacren
<sakiwit@gmail.com>
Sat, 2 May 2015 07:49:26 +0000
(
00:49
-0700)
committer
Jeff Kirsher
<jeffrey.t.kirsher@intel.com>
Mon, 4 May 2015 08:18:06 +0000
(
01:18
-0700)
'err' will be overwritten so no need to initialize it to zero.
Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e100.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/e100.c
b/drivers/net/ethernet/intel/e100.c
index 1a450f4b6b125d2234ea159022666b5ca381d328..35357ae2fe7517d396e47cdc8cc77d2820b05a74 100644
(file)
--- a/
drivers/net/ethernet/intel/e100.c
+++ b/
drivers/net/ethernet/intel/e100.c
@@
-874,7
+874,7
@@
static int e100_exec_cb(struct nic *nic, struct sk_buff *skb,
{
struct cb *cb;
unsigned long flags;
- int err
= 0
;
+ int err;
spin_lock_irqsave(&nic->cb_lock, flags);