From: Tony Nguyen <anthony.l.nguyen@intel.com> Date: 2021-11-30 18:30:35
This series contains updates to ice driver only.
Shiraz corrects assignment of boolean variable and removes an unused
enum.
The following are changes since commit 196073f9c44be0b4758ead11e51bc2875f98df29:
net: ixp4xx_hss: drop kfree for memory allocated with devm_kzalloc
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 100GbE
Shiraz Saleem (2):
net/ice: Fix boolean assignment
net/ice: Remove unused enum
drivers/net/ethernet/intel/ice/ice_devlink.c | 2 +-
drivers/net/ethernet/intel/ice/ice_devlink.h | 4 ----
2 files changed, 1 insertion(+), 5 deletions(-)
--
2.31.1
From: Tony Nguyen <anthony.l.nguyen@intel.com> Date: 2021-11-30 18:30:32
From: Shiraz Saleem <redacted>
vbool in ice_devlink_enable_roce_get can be assigned to a
non-0/1 constant.
Fix this assignment of vbool to be 0/1.
Fixes: e523af4ee560 ("net/ice: Add support for enable_iwarp and enable_roce devlink param")
Suggested-by: Parav Pandit <redacted>
Signed-off-by: Shiraz Saleem <redacted>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
drivers/net/ethernet/intel/ice/ice_devlink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hello:
This series was applied to netdev/net-next.git (master)
by Tony Nguyen [off-list ref]:
On Tue, 30 Nov 2021 10:12:41 -0800 you wrote:
This series contains updates to ice driver only.
Shiraz corrects assignment of boolean variable and removes an unused
enum.
The following are changes since commit 196073f9c44be0b4758ead11e51bc2875f98df29:
net: ixp4xx_hss: drop kfree for memory allocated with devm_kzalloc
and are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 100GbE
[...]
From: Joe Perches <joe@perches.com> Date: 2021-12-02 17:49:05
On Tue, 2021-11-30 at 10:12 -0800, Tony Nguyen wrote:
From: Shiraz Saleem <redacted>
vbool in ice_devlink_enable_roce_get can be assigned to a
non-0/1 constant.
Fix this assignment of vbool to be 0/1.
This one seems fine, but another use of vbool in ice still exists
drivers/net/ethernet/intel/ice/ice_devlink.c:617: value.vbool = test_bit(ICE_FLAG_RDMA_ENA, pf->flags) ? true : false;
Curiously, the vbool is defined in a union so it's possible
for the vbool value in the union to not just be 0 or 1.