Commit 7244fe9e authored by Randy Dunlap's avatar Randy Dunlap Committed by Jeff Garzik

[PATCH] skfp: remove assignment expression in conditional (sparse)(v2)

Fix sparse warning:
drivers/net/skfp/hwmtm.c:1904:20: warning: assignment expression in
conditional
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
parent ed1c45a6
...@@ -1901,7 +1901,8 @@ void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc) ...@@ -1901,7 +1901,8 @@ void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc)
} }
if (!smc->hw.mac_ring_is_up || frag_count > queue->tx_free) { if (!smc->hw.mac_ring_is_up || frag_count > queue->tx_free) {
if (frame_status &= ~LAN_TX) { frame_status &= ~LAN_TX;
if (frame_status) {
DB_TX("Ring is down: terminate LAN_TX",0,0,2) ; DB_TX("Ring is down: terminate LAN_TX",0,0,2) ;
} }
else { else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment