OSDN Git Service

staging: iio: ad7150: simplify i2c SMBus return treatment
authorMelissa Wen <melissa.srw@gmail.com>
Fri, 14 Jun 2019 16:32:54 +0000 (13:32 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Jun 2019 20:06:49 +0000 (21:06 +0100)
commit28c7901451b662c0bf200ed22c110e212e40f3ba
treefe6f94d7684c5fde6ca449c64b29584d7f8e4a51
parent34b94f9383138acc892f460bfcb9a35581e048fd
staging: iio: ad7150: simplify i2c SMBus return treatment

Since i2c_smbus_write_byte_data returns no-positive value, this commit
making the treatment of its return value less verbose.

Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/cdc/ad7150.c