On Thu, Jun 21, 2012 at 4:38 AM, Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > On Wed, Jun 20, 2012 at 12:35:42AM +0530, Devendra Naga wrote: >> - bit=(read_nic_byte_E(dev, EPROM_CMD) & (1<<EPROM_R_SHIFT) ); >> + bit = (read_nic_byte_E(dev, EPROM_CMD) & (1<<EPROM_R_SHIFT)); >> udelay(EPROM_DELAY); >> >> - if(bit) return 1; >> - return 0; >> + return !!bit; > > Oh come on, really? !! is more "clear" here? > It looks ok to me, > No, please be painfully obvious, that's the only way to write kernel > code. Not like this. > Ok, so no !!'s ? and just that if (bit) thingy? > greg k-h _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel