]> asedeno.scripts.mit.edu Git - linux.git/commit
cxgb4: fix missing break in switch and indent return statements
authorColin Ian King <colin.king@canonical.com>
Fri, 13 Oct 2017 16:29:00 +0000 (17:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Oct 2017 01:37:57 +0000 (18:37 -0700)
commit5dc874252faa818426480a7c00fa05738fe05402
tree7bd9b946248e29b2298cf7fd2b71859d83c8c1a0
parentae96d3331e0549e075299f17193d22423e462b80
cxgb4: fix missing break in switch and indent return statements

The break statement for the Macronix case is missing and will
fall through to the Winbond case and re-assign the size setting.
Fix this by adding the missing break statement.  Also correctly
indent the return statements.

Detected by CoverityScan, CID#1458020 ("Missing break in switch")

Fixes: 96ac18f14a5a ("cxgb4: Add support for new flash parts")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c