Commit 49afc040 authored by Nihar Chaithanya's avatar Nihar Chaithanya Committed by Jakub Kicinski
Browse files

octeontx2-pf: mcs: Remove dead code and semi-colon from rsrc_name()



Every case in the switch-block ends with return statement, and the
default: branch handles the cases where rsrc_type is invalid and
returns "Unknown", this makes the return statement at the end of the
function unreachable and redundant.
The semi-colon is not required after the switch-block's curly braces.

Remove the semi-colon after the switch-block's curly braces and the
return statement at the end of the function.

This issue was reported by Coverity Scan.

Signed-off-by: default avatarNihar Chaithanya <niharchaithanya@gmail.com>
Link: https://patch.msgid.link/20250104171905.13293-1-niharchaithanya@gmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 21a8a77a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment