Re: [PATCH] libata: add ATAPI module option

From: Mark Lord (liml_at_rtr.ca)
Date: 08/31/05

  • Next message: Christoph Lameter: "Re: [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured."
    Date:	Tue, 30 Aug 2005 19:54:48 -0400
    To: Jeff Garzik <jgarzik@pobox.com>
    
    

    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!
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Christoph Lameter: "Re: [PATCH] Only process_die notifier in ia64_do_page_fault if KPROBES is configured."

    Relevant Pages

    • Re: [PATCH] libata: add ATAPI module option
      ... > Jeff Garzik wrote: ... > Is that if-stmt the right way around? ... > At first glance, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [SATA] libata-dev queue updated
      ... Jeff Garzik wrote: ... Does this mean that now we can use SMART on SATA disks? ... Or only PATA disks? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [opensuse] look inside a initrd?
      ... At first glance it looks like a complete linux systemdisk :-) ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ...
      (SuSE)
    • Re: [PATCH 2.6.8-rc2] sata_nv.c
      ... Andrew Chew wrote: ... > Jeff Garzik wrote: ... I missed the kfree(), sorry. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Experimental git repositories available for SATA
      ... Jeff Garzik wrote: ... For libata-dev.git, I moved these into the main directory, so ... that things work a bit easier with Linus's scripts. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)