aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-11-05 14:30:39 -0500
committerJohannes Berg <johannes.berg@intel.com>2012-11-07 12:01:41 -0500
commit6fc1da9b4bba273989a707997f52b6382f608a2f (patch)
treedf1c294400aab274eba89250fba538b977a393c5 /net
parent41c97a2032e753d7975828c51b23b570dc6f9b0d (diff)
mac80211: use kstrtoull return value
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>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/debugfs_netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c
index 99ce871bfcf9..9b6afb3698f6 100644
--- a/net/mac80211/debugfs_netdev.c
+++ b/net/mac80211/debugfs_netdev.c
@@ -423,7 +423,7 @@ static ssize_t ieee80211_if_parse_tsf(
423 } 423 }
424 ret = kstrtoull(buf, 10, &tsf); 424 ret = kstrtoull(buf, 10, &tsf);
425 if (ret < 0) 425 if (ret < 0)
426 return -EINVAL; 426 return ret;
427 if (tsf_is_delta) 427 if (tsf_is_delta)
428 tsf = drv_get_tsf(local, sdata) + tsf_is_delta * tsf; 428 tsf = drv_get_tsf(local, sdata) + tsf_is_delta * tsf;
429 if (local->ops->set_tsf) { 429 if (local->ops->set_tsf) {