]> git.ipfire.org Git - thirdparty/iw.git/commit
scan: wps: remove useless string length checks
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Feb 2020 20:42:16 +0000 (21:42 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Feb 2020 20:42:16 +0000 (21:42 +0100)
commit7d36556a8c929ead4d04fc29d2ed76cf5b0e3213
tree0545002d1083c43cd5f4df2dfd0f9aaee0609c61
parentff326369fb5561c8108f46cc003ea9cd4ef4d089
scan: wps: remove useless string length checks

If we're going to print using %*s, then there's no need
to check the length first - zero is fine and results in
no memory access.

Change-Id: I68a4ebd0be8e5c03670d475fe664597b6046df39
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
scan.c