Re: [PATCH 1/2] drivers gpio: Check for negativ gpio values

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

 



Am 24.09.2012 11:16, schrieb Jan Lübbe:
On Mon, 2012-09-24 at 10:59 +0200, Teresa Gámez wrote:
  static int gpio_is_valid(unsigned gpio)
  {
-	if (gpio < ARCH_NR_GPIOS)
+	if (gpio < ARCH_NR_GPIOS && gpio >= 0)
For an 'unsigned gpio', gpio >= 0 is always true.
Thats true...
Ignore this one then.

Sorry, forgot to cc mailing list.

Teresa

Regards,
Jan Lübbe


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux