提交 5dc87425 编写于 作者: C Colin Ian King 提交者: David S. Miller

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: 96ac18f1 ("cxgb4: Add support for new flash parts")
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ae96d333
...@@ -8425,6 +8425,7 @@ static int t4_get_flash_params(struct adapter *adap) ...@@ -8425,6 +8425,7 @@ static int t4_get_flash_params(struct adapter *adap)
flashid, density); flashid, density);
return -EINVAL; return -EINVAL;
} }
break;
} }
case 0xef: { /* Winbond */ case 0xef: { /* Winbond */
/* This Density -> Size decoding table is taken from Winbond /* This Density -> Size decoding table is taken from Winbond
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册