From: Florian Fainelli Date: Wed, 18 Dec 2013 05:38:13 +0000 (-0800) Subject: net: phy: spi_ks8995: fix checkpatch errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7aff9675812303a4885e94d9aa43e86e7f61ac61;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: phy: spi_ks8995: fix checkpatch errors checkpatch spotted two errors, fix them. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index 98fb9f360d83..0ba431145a84 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -171,14 +171,14 @@ static int ks8995_write(struct ks8995_switch *ks, char *buf, static inline int ks8995_read_reg(struct ks8995_switch *ks, u8 addr, u8 *buf) { - return (ks8995_read(ks, buf, addr, 1) != 1); + return ks8995_read(ks, buf, addr, 1) != 1; } static inline int ks8995_write_reg(struct ks8995_switch *ks, u8 addr, u8 val) { char buf = val; - return (ks8995_write(ks, &buf, addr, 1) != 1); + return ks8995_write(ks, &buf, addr, 1) != 1; } /* ------------------------------------------------------------------------ */