]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: dln2: Simplify return flow for dln2_i2c_enable
authorOctavian Purdila <octavian.purdila@intel.com>
Tue, 18 Nov 2014 12:57:58 +0000 (14:57 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 19 Nov 2014 17:12:37 +0000 (17:12 +0000)
commit9331642812b19313ca4c545b37c001d68efb7022
tree4ca83613a77752f700b816398c5e29ffd99e294e
parent7ca2b1c6724b150d8305ce06e4b07904ecbcb3fb
i2c: dln2: Simplify return flow for dln2_i2c_enable

This fixes the following kbuild test robot warning:

>> drivers/i2c/busses/i2c-dln2.c:70:1-4: WARNING: end returns can be simplified if negative or 0 value

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/i2c/busses/i2c-dln2.c