i40e: Remove unneeded conversion to bool
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/net/ethernet/intel/i40e/i40e_main.c:1614:52-57: WARNING: conversion to bool not needed here drivers/net/ethernet/intel/i40e/i40e_main.c:11439:52-57: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e9a9e51994
commit
7ff4f0631f
@ -1611,7 +1611,7 @@ static int i40e_config_rss_aq(struct i40e_vsi *vsi, const u8 *seed,
|
||||
}
|
||||
}
|
||||
if (lut) {
|
||||
bool pf_lut = vsi->type == I40E_VSI_MAIN ? true : false;
|
||||
bool pf_lut = vsi->type == I40E_VSI_MAIN;
|
||||
|
||||
ret = i40e_aq_set_rss_lut(hw, vsi->id, pf_lut, lut, lut_size);
|
||||
if (ret) {
|
||||
@ -11436,7 +11436,7 @@ static int i40e_get_rss_aq(struct i40e_vsi *vsi, const u8 *seed,
|
||||
}
|
||||
|
||||
if (lut) {
|
||||
bool pf_lut = vsi->type == I40E_VSI_MAIN ? true : false;
|
||||
bool pf_lut = vsi->type == I40E_VSI_MAIN;
|
||||
|
||||
ret = i40e_aq_get_rss_lut(hw, vsi->id, pf_lut, lut, lut_size);
|
||||
if (ret) {
|
||||
|
Loading…
Reference in New Issue
Block a user