projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/irda: sh_sir: fix return value check in sh_sir_set_baudrate()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
net
/
irda
/
sh_sir.c
diff --git
a/drivers/net/irda/sh_sir.c
b/drivers/net/irda/sh_sir.c
index 256eddf1f75a1913576067742f8fc1cb3dce3e7a..795109425568623977428b1a62bffc7d11c6fa14 100644
(file)
--- a/
drivers/net/irda/sh_sir.c
+++ b/
drivers/net/irda/sh_sir.c
@@
-280,7
+280,7
@@
static int sh_sir_set_baudrate(struct sh_sir_self *self, u32 baudrate)
}
clk = clk_get(NULL, "irda_clk");
- if (
!clk
) {
+ if (
IS_ERR(clk)
) {
dev_err(dev, "can not get irda_clk\n");
return -EIO;
}