net/bnx2x: remove redundant parenthesis
No need for extra parentheis around simple if expresssion Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
fa620b86e3
commit
eb23e8c9af
@ -8137,7 +8137,7 @@ static int bnx2x_get_igu_cam_info(struct bnx2x_softc *sc)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
fid = IGU_FID(val);
|
fid = IGU_FID(val);
|
||||||
if ((fid & IGU_FID_ENCODE_IS_PF)) {
|
if (fid & IGU_FID_ENCODE_IS_PF) {
|
||||||
if ((fid & IGU_FID_PF_NUM_MASK) != pfid) {
|
if ((fid & IGU_FID_PF_NUM_MASK) != pfid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -3402,7 +3402,7 @@ void ecore_init_mac_credit_pool(struct bnx2x_softc *sc,
|
|||||||
/* CAM credit is equally divided between all active functions
|
/* CAM credit is equally divided between all active functions
|
||||||
* on the PORT!.
|
* on the PORT!.
|
||||||
*/
|
*/
|
||||||
if ((func_num > 0)) {
|
if (func_num > 0) {
|
||||||
if (!CHIP_REV_IS_SLOW(sc))
|
if (!CHIP_REV_IS_SLOW(sc))
|
||||||
cam_sz = (MAX_MAC_CREDIT_E1H / (2 * func_num));
|
cam_sz = (MAX_MAC_CREDIT_E1H / (2 * func_num));
|
||||||
else
|
else
|
||||||
@ -3419,7 +3419,7 @@ void ecore_init_mac_credit_pool(struct bnx2x_softc *sc,
|
|||||||
* CAM credit is equaly divided between all active functions
|
* CAM credit is equaly divided between all active functions
|
||||||
* on the PATH.
|
* on the PATH.
|
||||||
*/
|
*/
|
||||||
if ((func_num > 0)) {
|
if (func_num > 0) {
|
||||||
if (!CHIP_REV_IS_SLOW(sc))
|
if (!CHIP_REV_IS_SLOW(sc))
|
||||||
cam_sz = (MAX_MAC_CREDIT_E2 / func_num);
|
cam_sz = (MAX_MAC_CREDIT_E2 / func_num);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user