diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-05-20 11:01:08 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-05-28 11:49:44 +0300 |
commit | 5d08408b6f6b28d9a57ab7b2c7419ca8bfc6b8a4 (patch) | |
tree | dd3d90f8d708c4b6fa171773ef6083600dab3ee6 /net/switchdev/switchdev.c | |
parent | ae8c2366d77cd7c6de776bcb1dcb6be88f2a1185 (diff) |
brcmfmac: simplify check finding NVRAM v1 device path
With a simple use of snprintf and small buffer we can compare NVRAM
entry value with a full string. This way we avoid checking random chars
at magic offsets.
Tested on BCM43602 with NVRAM hacked to use v1 format.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions