Re: [PATCH] libata: add ATAPI module option
From: Mark Lord <hidden>
Date: 2005-08-30 23:54:57
Also in:
lkml
From: Mark Lord <hidden>
Date: 2005-08-30 23:54:57
Also in:
lkml
Jeff Garzik wrote:
-#ifndef ATA_ENABLE_ATAPI
- if (unlikely(dev->class == ATA_DEV_ATAPI))
- return NULL;
-#endif
+ if (atapi_enabled) {
+ if (unlikely(dev->class == ATA_DEV_ATAPI))
+ return NULL;
+ }..
Is that if-stmt the right way around?
At first glance, I'd expect it to read:
if (!atapi_enabled) {
...
Cheers!