summaryrefslogtreecommitdiff
path: root/include/linux/netpoll.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2022-06-03 19:44:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-11 11:45:05 +0200
commit2d4e9a5e7b150812a74ade921154b11b4572c6b5 (patch)
tree3a9636ed539fbf960cfcad65df9c9570854c3267 /include/linux/netpoll.h
parentcb9f88935358ec0701a78eb1b66896e29f743d82 (diff)
wifi: ray_cs: Utilize strnlen() in parse_addr()
[ Upstream commit 9e8e9187673cb24324f9165dd47b2b28f60b0b10 ] Instead of doing simple operations and using an additional variable on stack, utilize strnlen() and reuse len variable. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220603164414.48436-1-andriy.shevchenko@linux.intel.com Stable-dep-of: 4f8d66a9fb2e ("wifi: ray_cs: Fix an error handling path in ray_probe()") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/netpoll.h')
0 files changed, 0 insertions, 0 deletions