Commit 2e1b1d7
parport: gsc: remove DMA leftover code
This driver does not actually work with DMA mode, but still tries
to call ISA DMA interface functions that are stubbed out on
parisc, resulting in a W=1 build warning:
drivers/parport/parport_gsc.c: In function 'parport_remove_chip':
drivers/parport/parport_gsc.c:389:20: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
389 | free_dma(p->dma);
Remove the corresponding code as a prerequisite for turning on -Wempty-body
by default in all kernels.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>1 parent ce9ff57 commit 2e1b1d7
2 files changed
+4
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | | - | |
| 228 | + | |
230 | 229 | | |
231 | | - | |
| 230 | + | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
253 | | - | |
254 | | - | |
255 | 252 | | |
256 | 253 | | |
257 | 254 | | |
258 | | - | |
259 | 255 | | |
260 | 256 | | |
261 | 257 | | |
| |||
286 | 282 | | |
287 | 283 | | |
288 | 284 | | |
289 | | - | |
| 285 | + | |
290 | 286 | | |
291 | 287 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 288 | | |
301 | 289 | | |
302 | 290 | | |
| |||
321 | 309 | | |
322 | 310 | | |
323 | 311 | | |
324 | | - | |
325 | 312 | | |
326 | 313 | | |
327 | 314 | | |
| |||
369 | 356 | | |
370 | 357 | | |
371 | 358 | | |
372 | | - | |
373 | | - | |
| 359 | + | |
374 | 360 | | |
375 | 361 | | |
376 | 362 | | |
| |||
382 | 368 | | |
383 | 369 | | |
384 | 370 | | |
385 | | - | |
386 | 371 | | |
387 | 372 | | |
388 | | - | |
389 | | - | |
390 | 373 | | |
391 | 374 | | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | 375 | | |
396 | 376 | | |
397 | 377 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | 200 | | |
0 commit comments