Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256375
b: refs/heads/master
c: e2df64c
h: refs/heads/master
i:
  256373: c9fc6c7
  256371: 0835c2f
  256367: 894b99f
v: v3
  • Loading branch information
Pavel Roskin authored and John W. Linville committed Jul 8, 2011
1 parent f1385d1 commit 1a01218
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4bbf2f541501dcde47ce687ffc6d238bd2f7813
refs/heads/master: e2df64c1d767eb52a5c617668e20745d5e3015c8
6 changes: 4 additions & 2 deletions trunk/drivers/net/wireless/ath/ath5k/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ static ssize_t ath5k_attr_store_##name(struct device *dev, \
const char *buf, size_t count) \
{ \
struct ath5k_softc *sc = dev_get_drvdata(dev); \
int val; \
int val, ret; \
\
val = (int)simple_strtoul(buf, NULL, 10); \
ret = kstrtoint(buf, 10, &val); \
if (ret < 0) \
return ret; \
set(sc->ah, val); \
return count; \
} \
Expand Down

0 comments on commit 1a01218

Please sign in to comment.