Commit c4a9c8e
ice: don't ignore return codes in VSI related code
There were few smatch warnings reported by Dan:
- ice_vsi_cfg_xdp_txqs can return 0 instead of ret, which is cleaner
- return values in ice_vsi_cfg_def were ignored
- in ice_vsi_rebuild return value was ignored in case rebuild failed,
it was a never reached code, however, rewrite it for clarity.
- ice_vsi_cfg_tc can return 0 instead of ret
Fixes: 6624e78 ("ice: split ice_vsi_setup into smaller functions")
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>1 parent fef3f92 commit c4a9c8e
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
2129 | | - | |
| 2129 | + | |
2130 | 2130 | | |
2131 | 2131 | | |
2132 | 2132 | | |
| |||
2693 | 2693 | | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | | - | |
| 2696 | + | |
| 2697 | + | |
2697 | 2698 | | |
2698 | 2699 | | |
2699 | 2700 | | |
2700 | 2701 | | |
2701 | | - | |
| 2702 | + | |
| 2703 | + | |
2702 | 2704 | | |
2703 | 2705 | | |
2704 | 2706 | | |
| |||
2811 | 2813 | | |
2812 | 2814 | | |
2813 | 2815 | | |
| 2816 | + | |
2814 | 2817 | | |
2815 | 2818 | | |
2816 | 2819 | | |
| |||
3508 | 3511 | | |
3509 | 3512 | | |
3510 | 3513 | | |
3511 | | - | |
3512 | | - | |
3513 | | - | |
3514 | 3514 | | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
3515 | 3518 | | |
3516 | 3519 | | |
3517 | 3520 | | |
| |||
3759 | 3762 | | |
3760 | 3763 | | |
3761 | 3764 | | |
3762 | | - | |
| 3765 | + | |
3763 | 3766 | | |
3764 | 3767 | | |
3765 | 3768 | | |
| |||
0 commit comments