net/ice: Fix boolean assignment
Subsystems (2)
PATCH 1/2 net/ice: Fix boolean assignment
From: "Shiraz Saleem" <[email protected]>
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.
--- drivers/net/ethernet/intel/ice/ice_devlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/ice/ice_devlink.c +1 -1
@@ -436,7 +436,7 @@ static int ice_devlink_info_get(struct devlink *devlink, {struct ice_pf *pf =devlink_priv (devlink); - ctx->val.vbool = pf->rdma_mode &IIDC_RDMA_PROTOCOL_ROCEV2 ; + ctx->val.vbool = pf->rdma_mode &IIDC_RDMA_PROTOCOL_ROCEV2 ? true : false;return 0 ; }
Signature · 1 line
1.8.3.1
PATCH 2/2 net/ice: Remove unused enum
From: "Shiraz Saleem" <[email protected]>
Remove ice_devlink_param_id enum as its not used.
--- drivers/net/ethernet/intel/ice/ice_devlink.h | 4 ---- 1 file changed, 4 deletions(-)
drivers/net/ethernet/intel/ice/ice_devlink.h +0 -4
@@ -4,10 +4,6 @@#ifndef _ICE_DEVLINK_H_#define _ICE_DEVLINK_H_ -enum ice_devlink_param_id { -ICE_DEVLINK_PARAM_ID_BASE =DEVLINK_PARAM_GENERIC_ID_MAX , -}; -struct ice_pf *ice_allocate_pf (struct device *dev);void ice_devlink_register (struct ice_pf *pf);
Signature · 1 line
1.8.3.1
PATCH 2/2 net/ice: Remove unused enum
Dear Shiraz,
Am 24.11.21 um 13:41 schrieb Shiraz Saleem:
Quoted 3 lines
From: "Shiraz Saleem" <[email protected]>
Remove
ice_devlink_param_idenum as its not used.
Please add the name ice_devlink_param_id to the commit message summary.
[?]
Kind regards,
Paul
PATCH 2/2 net/ice: Remove unused enum
Quoted 9 lines · Paul Menzel
Dear Shiraz,
Am 24.11.21 um 13:41 schrieb Shiraz Saleem:
Quoted 3 lines
From: "Shiraz Saleem" <[email protected]>
Remove
ice_devlink_param_idenum as its not used.Please add the name
ice_devlink_param_idto the commit message summary.
Hi Paul, I don't think that is necessary, is this just personal preference or are you following some style guideline that I don't know about or maybe just don't remember?
I'd argue that the subject line has a different bug, it should be:
[PATCH net-next] ice: Remove unused enum
But I see no reason to add the long string of the actual enum removed to the subject.
Jesse
PATCH 2/2 net/ice: Remove unused enum
Dear Jesse,
Am 29.11.21 um 22:31 schrieb Jesse Brandeburg:
Quoted 13 lines · Paul Menzel
Quoted 7 lines
Am 24.11.21 um 13:41 schrieb Shiraz Saleem:
Quoted 3 lines
From: "Shiraz Saleem" <[email protected]>
Remove
ice_devlink_param_idenum as its not used.Please add the name
ice_devlink_param_idto the commit message summary.Hi Paul, I don't think that is necessary, is this just personal preference or are you following some style guideline that I don't know about or maybe just don't remember?
Quoted 5 lines
I'd argue that the subject line has a different bug, it should be:
[PATCH net-next] ice: Remove unused enumBut I see no reason to add the long string of the actual enum removed to the subject.
Reading through git log --oneline, which is also used in the announcement emails, the line
Quoted 1 line
ice: Remove unused enum
would make me need to look into the commit to find out if something ?important? was removed. Using
Quoted 1 line
ice: Remove unused enum
ice_devlink_param_id
would make that unnecessary for me.
Kind regards,
Paul