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:
f9fd0e3
)
net: mvpp2: Adjust a null pointer check in mvpp2_egress_enable()
author
Markus Elfring
<
[email protected]
>
Mon, 17 Apr 2017 12:07:52 +0000
(14:07 +0200)
committer
David S. Miller
<
[email protected]
>
Tue, 18 Apr 2017 17:55:09 +0000
(13:55 -0400)
The script "checkpatch.pl" pointed information out like the following.
Comparison to NULL could be written "txq->descs".
Thus fix the affected source code place.
Signed-off-by: Markus Elfring <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/marvell/mvpp2.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/marvell/mvpp2.c
b/drivers/net/ethernet/marvell/mvpp2.c
index 3bdd3f1fe34eab7470c2649a7f644fee89aee338..9b875d776b296d165c4ae3a994bd527a8dafb698 100644
(file)
--- a/
drivers/net/ethernet/marvell/mvpp2.c
+++ b/
drivers/net/ethernet/marvell/mvpp2.c
@@
-4415,7
+4415,7
@@
static void mvpp2_egress_enable(struct mvpp2_port *port)
for (queue = 0; queue < txq_number; queue++) {
struct mvpp2_tx_queue *txq = port->txqs[queue];
- if (txq->descs
!= NULL
)
+ if (txq->descs)
qmap |= (1 << queue);
}