OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41c97a2
)
mac80211: use kstrtoull return value
author
Johannes Berg
<johannes.berg@intel.com>
Mon, 5 Nov 2012 19:30:39 +0000
(20:30 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 7 Nov 2012 17:01:41 +0000
(18:01 +0100)
If kstrtoull() returns an error code (a value
smaller than zero), use it since it can be an
error other than -EINVAL.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs_netdev.c
patch
|
blob
|
history
diff --git
a/net/mac80211/debugfs_netdev.c
b/net/mac80211/debugfs_netdev.c
index
99ce871
..
9b6afb3
100644
(file)
--- a/
net/mac80211/debugfs_netdev.c
+++ b/
net/mac80211/debugfs_netdev.c
@@
-423,7
+423,7
@@
static ssize_t ieee80211_if_parse_tsf(
}
ret = kstrtoull(buf, 10, &tsf);
if (ret < 0)
- return
-EINVAL
;
+ return
ret
;
if (tsf_is_delta)
tsf = drv_get_tsf(local, sdata) + tsf_is_delta * tsf;
if (local->ops->set_tsf) {