Commit 8a2a806
committed
ipmi: make ipmi_destroy_user() return void
JIRA: https://issues.redhat.com/browse/RHEL-82110
Upstream status: v6.14
commit 9b6442a
Author: Vitaliy Shevtsov <v.shevtsov@maxima.ru>
Date: Wed Dec 25 01:45:30 2024 +0000
ipmi: make ipmi_destroy_user() return void
Return value of ipmi_destroy_user() has no meaning, because it's always
zero and callers can do nothing with it. And in most cases it's not
checked. So make this function return void. This also will eliminate static
code analyzer warnings such as unreachable code/redundant comparison when
the return value is checked against non-zero value.
Found by Linux Verification Center (linuxtesting.org) with Svace.
Signed-off-by: Vitaliy Shevtsov <v.shevtsov@maxima.ru>
Message-ID: <20241225014532.20091-1-v.shevtsov@maxima.ru>
Signed-off-by: Corey Minyard <corey@minyard.net>
Signed-off-by: Tony Camuso <tcamuso@redhat.com>1 parent ed918f3 commit 8a2a806
File tree
5 files changed
+5
-17
lines changed- drivers/char/ipmi
- include/linux
5 files changed
+5
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | 125 | | |
127 | 126 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 127 | + | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1399 | 1399 | | |
1400 | 1400 | | |
1401 | 1401 | | |
1402 | | - | |
| 1402 | + | |
1403 | 1403 | | |
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
1407 | | - | |
1408 | | - | |
1409 | 1407 | | |
1410 | 1408 | | |
1411 | 1409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
702 | | - | |
703 | | - | |
704 | 702 | | |
705 | 703 | | |
706 | 704 | | |
707 | 705 | | |
708 | 706 | | |
709 | 707 | | |
710 | 708 | | |
711 | | - | |
712 | | - | |
713 | | - | |
| 709 | + | |
714 | 710 | | |
715 | 711 | | |
716 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1064 | 1064 | | |
1065 | 1065 | | |
1066 | 1066 | | |
1067 | | - | |
1068 | 1067 | | |
1069 | 1068 | | |
1070 | 1069 | | |
| |||
1089 | 1088 | | |
1090 | 1089 | | |
1091 | 1090 | | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
| 1091 | + | |
1095 | 1092 | | |
1096 | 1093 | | |
1097 | 1094 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments