Skip to content

Commit

Permalink
net: phy: spi_ks8995: fix checkpatch errors
Browse files Browse the repository at this point in the history
checkpatch spotted two errors, fix them.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florian Fainelli authored and David S. Miller committed Dec 18, 2013
1 parent e109374 commit 7aff967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/phy/spi_ks8995.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/* ------------------------------------------------------------------------ */
Expand Down

0 comments on commit 7aff967

Please sign in to comment.