Thread (6 messages) 6 messages, 3 authors, 2005-10-22

Re: [PATCH] libata: add ATAPI module option

From: Jeff Garzik <hidden>
Date: 2005-08-31 01:52:52
Also in: lkml

Mark Lord wrote:
Jeff Garzik wrote:
quoted
-#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!
Indeed, thanks, fixed.

	Jeff


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help