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:
f6f19f8
)
fm10k: do not use enum as boolean
author
Jacob Keller
<
[email protected]
>
Tue, 25 Aug 2015 00:02:00 +0000
(17:02 -0700)
committer
Jeff Kirsher
<
[email protected]
>
Wed, 14 Oct 2015 06:51:37 +0000
(23:51 -0700)
Check for actual value NETREG_UNINITIALIZED in case it ever changes from
the current value of zero.
Signed-off-by: Jacob Keller <
[email protected]
>
Signed-off-by: Bruce Allan <
[email protected]
>
Tested-by: Krishneil Singh <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/fm10k/fm10k_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/fm10k/fm10k_main.c
b/drivers/net/ethernet/intel/fm10k/fm10k_main.c
index 2f47bfe6cc9084807d82d6bac60a68990226b553..537d81a6d738966f5a92ccd76a5261ca9b713eed 100644
(file)
--- a/
drivers/net/ethernet/intel/fm10k/fm10k_main.c
+++ b/
drivers/net/ethernet/intel/fm10k/fm10k_main.c
@@
-1905,7
+1905,7
@@
static void fm10k_init_reta(struct fm10k_intfc *interface)
u32 reta, base;
/* If the netdev is initialized we have to maintain table if possible */
- if (interface->netdev->reg_state) {
+ if (interface->netdev->reg_state
!= NETREG_UNINITIALIZED
) {
for (i = FM10K_RETA_SIZE; i--;) {
reta = interface->reta[i];
if ((((reta << 24) >> 24) < rss_i) &&