]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - sitara-epos/sitara-epos-kernel.git/commit
mfd: Remove unneeded ret value checking for max8998 register updates
authorAxel Lin <axel.lin@gmail.com>
Fri, 22 Oct 2010 00:30:26 +0000 (08:30 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:30:37 +0000 (00:30 +0200)
commit25d950714781f34e7ae1292f38889cf39983cb38
treee89653e3a0d630e8ae171b67f509d451c0e95ea7
parent1558b51eb7c813b3d90bdd68057403f7cac191fa
mfd: Remove unneeded ret value checking for max8998 register updates

i2c_smbus_write_byte_data() returns zero or negative value,
therefore no need to check if ret is greater than zero or not.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/max8998.c