forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
....@@ -1145,7 +1145,7 @@
11451145 break;
11461146 }
11471147 }
1148
- if (false == pg_found) {
1148
+ if (!pg_found) {
11491149 data[help_data->num_of_pg].pg = add_pg;
11501150 data[help_data->num_of_pg].pg_priority =
11511151 (1 << ttp[add_traf_type]);
....@@ -1155,7 +1155,7 @@
11551155 }
11561156 DP(BNX2X_MSG_DCB,
11571157 "add_traf_type %d pg_found %s num_of_pg %d\n",
1158
- add_traf_type, (false == pg_found) ? "NO" : "YES",
1158
+ add_traf_type, !pg_found ? "NO" : "YES",
11591159 help_data->num_of_pg);
11601160 }
11611161 }
....@@ -1544,8 +1544,7 @@
15441544 if (pg_entry < DCBX_MAX_NUM_PG_BW_ENTRIES) {
15451545 entry = 0;
15461546
1547
- if (i == (num_of_pri-1) &&
1548
- false == b_found_strict)
1547
+ if (i == (num_of_pri-1) && !b_found_strict)
15491548 /* last entry will be handled separately
15501549 * If no priority is strict than last
15511550 * entry goes to last queue.