Commit
71bfc7a7c73eaf1f99e309dba60822ba050e3ec5
Exists in
master
and in
39 other branches
8mp-imx_5.4.70_2.3.0, 8qm-imx_5.4.70_2.3.0, emb_imx_lf-5.15.y, emb_lf-6.1.y, imx_3.0.35_4.1.0, imx_3.10.17_1.0.1_ga, imx_3.10.53_1.1.0_ga, imx_3.14.28_1.0.0_ga, imx_4.1.15_1.0.0_ga, pitx_8mp_lf-5.10.y, rt-smarc-imx_4.1.15_1.0.0_ga, rt_linux_5.15.71, smarc-8m-android-11.0.0_2.0.0, smarc-imx6_4.14.98_2.0.0_ga, smarc-imx6_4.9.88_2.0.0_ga, smarc-imx7_4.14.98_2.0.0_ga, smarc-imx7_4.9.11_1.0.0_ga, smarc-imx7_4.9.88_2.0.0_ga, smarc-imx_3.10.53_1.1.0_ga, smarc-imx_3.14.28_1.0.0_ga, smarc-imx_4.1.15_1.0.0_ga, smarc-imx_4.9.11_1.0.0_ga, smarc-imx_4.9.51_imx8m_ga, smarc-imx_4.9.88_2.0.0_ga, smarc-m6.0.1_2.1.0-ga, smarc-n7.1.2_2.0.0-ga, smarc-rel_imx_4.1.15_1.2.0_ga, smarc_8m_00d0_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.14.78_1.0.0_ga, smarc_8m_imx_4.14.98_2.0.0_ga, smarc_8m_imx_4.19.35_1.1.0, smarc_8mm_imx_4.14.78_1.0.0_ga, smarc_8mm_imx_4.14.98_2.0.0_ga, smarc_8mm_imx_4.19.35_1.1.0, smarc_8mm_imx_5.4.24_2.1.0, smarc_8mp_lf-5.10.y, smarc_8mq_imx_5.4.24_2.1.0, smarc_8mq_lf-5.10.y, smarc_imx_lf-5.15.y
ide: NULL noise: drivers/ide/ide-*.c
Fix this sparse warnings:
drivers/ide/ide-disk_proc.c:130:11: warning: Using plain integer as NULL pointer
drivers/ide/ide-floppy_proc.c:32:11: warning: Using plain integer as NULL pointer
drivers/ide/ide-proc.c:234:11: warning: Using plain integer as NULL pointer
drivers/ide/ide-tape.c:2141:11: warning: Using plain integer as NULL pointer
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Cc: trivial@kernel.org
Cc: kernel-janitors@vger.kernel.org
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Showing
4 changed files
with
4 additions
and
4 deletions
Side-by-side Diff
... |
... |
@@ -125,6 +125,6 @@ |
125
|
125 |
IDE_PROC_DEVSET(multcount, 0, 16), |
126
|
126 |
IDE_PROC_DEVSET(nowerr, 0, 1), |
127
|
127 |
IDE_PROC_DEVSET(wcache, 0, 1), |
128
|
|
- { 0 }, |
|
128 |
+ { NULL }, |
129
|
129 |
}; |
... |
... |
@@ -29,6 +29,6 @@ |
29
|
29 |
IDE_PROC_DEVSET(bios_head, 0, 255), |
30
|
30 |
IDE_PROC_DEVSET(bios_sect, 0, 63), |
31
|
31 |
IDE_PROC_DEVSET(ticks, 0, 255), |
32
|
|
- { 0 }, |
|
32 |
+ { NULL }, |
33
|
33 |
}; |
... |
... |
@@ -231,7 +231,7 @@ |
231
|
231 |
IDE_PROC_DEVSET(pio_mode, 0, 255), |
232
|
232 |
IDE_PROC_DEVSET(unmaskirq, 0, 1), |
233
|
233 |
IDE_PROC_DEVSET(using_dma, 0, 1), |
234
|
|
- { 0 }, |
|
234 |
+ { NULL }, |
235
|
235 |
}; |
236
|
236 |
|
237
|
237 |
static void proc_ide_settings_warn(void) |
... |
... |
@@ -2166,7 +2166,7 @@ |
2166
|
2166 |
__IDE_PROC_DEVSET(speed, 0, 0xffff, NULL, NULL), |
2167
|
2167 |
__IDE_PROC_DEVSET(tdsc, IDETAPE_DSC_RW_MIN, IDETAPE_DSC_RW_MAX, |
2168
|
2168 |
mulf_tdsc, divf_tdsc), |
2169
|
|
- { 0 }, |
|
2169 |
+ { NULL }, |
2170
|
2170 |
}; |
2171
|
2171 |
#endif |
2172
|
2172 |
|