Commit 037fbd3
scsi: scsi_debug: Delete some bogus error checking
Smatch complains that "dentry" is never initialized. These days everyone
initializes all their stack variables to zero so this means that it will
trigger a warning every time this function is run.
Really, debugfs functions are not supposed to be checked for errors in
normal code. For example, if we updated this code to check the correct
variable then it would print a warning if CONFIG_DEBUGFS was disabled. We
don't want that. Just delete the check.
Fixes: f084fe5 ("scsi: scsi_debug: Add debugfs interface to fail target reset")
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Wenchao Hao <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>1 parent 860c3d0 commit 037fbd3
1 file changed
+0
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
1136 | 1135 | | |
1137 | 1136 | | |
1138 | 1137 | | |
1139 | 1138 | | |
1140 | 1139 | | |
1141 | 1140 | | |
1142 | 1141 | | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | 1142 | | |
1147 | 1143 | | |
1148 | 1144 | | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | 1145 | | |
1153 | 1146 | | |
1154 | 1147 | | |
| |||
0 commit comments