diff options
| author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-26 22:21:59 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-27 18:06:46 -0700 |
| commit | a6bac1822931bc3c862c07d535ab4192582c023c (patch) | |
| tree | 8c225f058f12c487f3dacc74f7252a164cb52060 /rust/helpers/build_bug.c | |
| parent | 330355191a2d9a59137455b774b9a66dd6d068d4 (diff) | |
amd-xgbe: Use int type to store negative error codes
Use int instead of unsigned int for the 'ret' variable to store return
values from functions that either return zero on success or negative error
codes on failure. Storing negative error codes in an unsigned int causes
no runtime issues, but it's ugly as pants, Change 'ret' from unsigned int
to int type - this change has no runtime impact.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250826142159.525059-1-rongqianfeng@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
