diff options
author | Arnd Bergmann <[email protected]> | 2023-08-11 15:45:41 +0200 |
---|---|---|
committer | Manivannan Sadhasivam <[email protected]> | 2023-08-11 20:37:23 +0530 |
commit | b0f9f3607959a24685bb5ebeed57cc2f8a66869d (patch) | |
tree | 3f8af5372493cdbc98d922e2033ee32f0120ef74 | |
parent | 7b672d703e76094595500afe67db29a4c9763081 (diff) |
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 <[email protected]>
Reviewed-by: Jeffrey Hugo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[mani: minor spelling fix to commit message]
Signed-off-by: Manivannan Sadhasivam <[email protected]>
-rw-r--r-- | drivers/bus/mhi/host/main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bus/mhi/host/main.c b/drivers/bus/mhi/host/main.c index 74a75439c713..dcf627b36e82 100644 --- a/drivers/bus/mhi/host/main.c +++ b/drivers/bus/mhi/host/main.c @@ -938,7 +938,6 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl, if (!mhi_chan->configured) break; parse_xfer_event(mhi_cntrl, local_rp, mhi_chan); - event_quota--; } break; default: |