Commit 6fc1da9b authored by Johannes Berg's avatar Johannes Berg
Browse files

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: default avatarJohannes Berg <johannes.berg@intel.com>
parent 41c97a20
...@@ -423,7 +423,7 @@ static ssize_t ieee80211_if_parse_tsf( ...@@ -423,7 +423,7 @@ static ssize_t ieee80211_if_parse_tsf(
} }
ret = kstrtoull(buf, 10, &tsf); ret = kstrtoull(buf, 10, &tsf);
if (ret < 0) if (ret < 0)
return -EINVAL; return ret;
if (tsf_is_delta) if (tsf_is_delta)
tsf = drv_get_tsf(local, sdata) + tsf_is_delta * tsf; tsf = drv_get_tsf(local, sdata) + tsf_is_delta * tsf;
if (local->ops->set_tsf) { if (local->ops->set_tsf) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment