bus: mhi: host: remove unused-but-set parameter
authorArnd Bergmann <arnd@arndb.de>
Fri, 11 Aug 2023 13:45:41 +0000 (15:45 +0200)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 11 Aug 2023 15:07:23 +0000 (20:37 +0530)
commitb0f9f3607959a24685bb5ebeed57cc2f8a66869d
tree3f8af5372493cdbc98d922e2033ee32f0120ef74
parent7b672d703e76094595500afe67db29a4c9763081
bus: mhi: host: remove unused-but-set parameter

Clang warns about a parameter that is decremented but never evaluated here:

bus/mhi/host/main.c:803:13: error: parameter 'event_quota' set but not used [-Werror,-Wunused-but-set-parameter]
                             u32 event_quota)

Remove the access to the variable to avoid that warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://lore.kernel.org/r/20230811134547.3231160-1-arnd@kernel.org
[mani: minor spelling fix to commit message]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/host/main.c