re: mfd: PCF50633 core driver

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

 



Hello Balaji Rao,

The patch f52046b14b1e: "mfd: PCF50633 core driver" from Jan 9, 2009,
leads to the following static checker warning:

	drivers/mfd/pcf50633-core.c:224 pcf50633_probe()
	warn: 'pcf50633_reg_read(pcf, 0)()' returns unsigned values

drivers/mfd/pcf50633-core.c
   221  
   222          version = pcf50633_reg_read(pcf, 0);
                          ^^^^^^^^^^^^^^^^^^^^^^^^^
These return 0xFF on error, they don't return negative values.

   223          variant = pcf50633_reg_read(pcf, 1);
   224          if (version < 0 || variant < 0) {
   225                  dev_err(pcf->dev, "Unable to probe pcf50633\n");
   226                  ret = -ENODEV;
   227                  return ret;
   228          }
   229  

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



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux