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

Re: [PATCH] libata: add ATAPI module option

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!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help