summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2023-07-09 16:31:54 +0300
committerJakub Kicinski <kuba@kernel.org>2023-07-12 05:22:54 +0300
commit9373771aaed17f5c2c38485f785568abe3a9f8c1 (patch)
treed1c3dbb42ebe3cd3b7b74a7bddd764fe52c6c48d /sound
parent8278ee2a2646b9acf747317895e47a640ba933c9 (diff)
downloadlinux-9373771aaed17f5c2c38485f785568abe3a9f8c1.tar.xz
wifi: airo: avoid uninitialized warning in airo_get_rate()
Quieten a gcc (11.3.0) build error or warning by checking the function call status and returning -EBUSY if the function call failed. This is similar to what several other wireless drivers do for the SIOCGIWRATE ioctl call when there is a locking problem. drivers/net/wireless/cisco/airo.c: error: 'status_rid.currentXmitRate' is used uninitialized [-Werror=uninitialized] Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/39abf2c7-24a-f167-91da-ed4c5435d1c4@linux-m68k.org Link: https://lore.kernel.org/r/20230709133154.26206-1-rdunlap@infradead.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions