Re: [patch] portman2x4.c: fix boot hang

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

 



* Frans Pop <[email protected]> wrote:

> Ingo Molnar wrote:
> >  if ((parport_read_status(p) & ESTB) == ESTB)
> > -		return 1;	/* CODE 1 - Strobe Failure. */
> > +		return -EIO;	/* CODE 1 - Strobe Failure. */
> >  
> >  /* Set for RXDATA0 where no damage will be done. */
> >  /* 5 */
> > @@ -475,7 +475,7 @@ static int portman_probe(struct parport
> >  
> >  /* 6 */
> >  if ((parport_read_status(p) & ESTB) != ESTB)
> > -		return 1;	/* CODE 1 - Strobe Failure. */
> > +		return -EIO;	/* CODE 1 - Strobe Failure. */
> 
> Why are you keeping the "CODE 1" comment? Just "Strobe Failure" as 
> comment would seem more consistent with the change.

looking at other uses of 'CODE' suggested that 'CODE 1' is not the 
return code - so i left it alone.

	Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux