Re: [patch 16/30] drivers/scsi/aic7xxx_old: Convert to generic boolean-values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 08 May 2007 10:11:00 -0500
James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote:

> > That being said, the patch is moderately wrong (or at least incomplete)
> > because it does things like:
> > 
> > -            unsigned char done = FALSE;
> > +            unsigned char done = false;
> > 
> > whereas it should have done
> > 
> > -            unsigned char done = FALSE;
> > +            bool done = false;
> 
> And the value to the driver of this transformation?

Not having to define private versions of TRUE and FALSE.  That's
a great blinking "something is wrong here" sign.

Obviously something like TRUE/FALSE should be a kernel-wide thing, not a
driver-private thing.  After quite some discussion and consideration, we
decided to stick with standard unmodified C99 (not C++) and implemented
that in include/linux/types.h and in include/linux/stddef.h.

Now, driver authors can go off and ignore all this, but others will not.  That
driver-private TRUE/FALSE is a big fat target saying "krufty, clean me up".

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux