diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-06-16 10:54:24 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-07-28 12:55:51 +0300 |
commit | bef11f1edc40cee156c60f9dbbbd9725a56b3639 (patch) | |
tree | b00e0708cd671d719cfa7e0860a45f8f05884ae5 /LICENSES | |
parent | 70c898d4bad1a21e0889ae12f355ff8c68ce5b9f (diff) |
wifi: brcmfmac: use strreplace() in brcmf_of_probe()
The for loop in brcmf_of_probe() would ideally end with something like
"i <= strlen(board_type)" instead of "i < board_type[i]". But
fortunately, the two are equivalent.
Anyway, it's simpler to use strreplace() instead.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/YqrhsKcjEA7B2pC4@kili
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions