drivers: wave5: Remove unnecessary semicolons
Subsystems (2)
PATCH 1/1 drivers: wave5: Remove unnecessary semicolons
Remove unnecessary semicolons reported by Coccinelle/coccicheck and the semantic patch at scripts/coccinelle/misc/semicolon.cocci.
--- drivers/media/platform/chips-media/wave5/wave5-hw.c | 2 +- drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/media/platform/chips-media/wave5/wave5-hw.c +1 -1
@@ -2315,7 +2315,7 @@ static bool wave5_vpu_enc_check_common_param_valid(struct vpu_instance *inst, param->intra_refresh_mode);return false; } - }; + }return true; invalid_refresh_argument:
drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c +1 -1
@@ -92,7 +92,7 @@ static int switch_state(struct vpu_instance *inst, enum vpu_instance_state statebreak ;case VPU_INST_STATE_STOP :break ; - }; + }dev_dbg (inst->dev->dev,"Switch state from %s to %s.\n" ,state_to_str (inst->state),state_to_str (state));
Signature · 1 line
2.43.0
Hi,
Le mardi 13 février 2024 à 15:04 +0100, Thorsten Blum a écrit :
Quoted 4 lines
Remove unnecessary semicolons reported by Coccinelle/coccicheck and the semantic patch at
scripts/coccinelle/misc/semicolon.cocci.Signed-off-by Thorsten Blum <[email protected]>
Thanks for the fix.
Quoted 31 lines
--- drivers/media/platform/chips-media/wave5/wave5-hw.c | 2 +- drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/media/platform/chips-media/wave5/wave5-hw.c +1
-1@@ -2315,7 +2315,7 @@ static bool wave5_vpu_enc_check_common_param_valid(struct vpu_instance *inst, param->intra_refresh_mode);return false; } - }; + }return true; invalid_refresh_argument:drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c +1
-1@@ -92,7 +92,7 @@ static int switch_state(struct vpu_instance *inst, enum vpu_instance_state statebreak ;case VPU_INST_STATE_STOP :break ; - }; + }dev_dbg (inst->dev->dev,"Switch state from %s to %s.\n" ,state_to_str (inst->state),state_to_str (state));
Hey Thorsten,
Thanks for the patch, change looks obviously good, one small thing to note for the future, the commit title should start with:
media: chips-media: wave5:
instead of:
drivers: wave5:
I will change that myself this time, but please do a quick git log next time to check how the path should be formatted for the driver.
Greetings,
Sebastian
Quoted 39 lines · Thorsten Blum
Remove unnecessary semicolons reported by Coccinelle/coccicheck and the semantic patch at
scripts/coccinelle/misc/semicolon.cocci.Signed-off-by Thorsten Blum <[email protected]>---
drivers/media/platform/chips-media/wave5/wave5-hw.c| 2 +-drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c| 2 +-2 files changed, 2 insertions(+), 2 deletions(-)drivers/media/platform/chips-media/wave5/wave5-hw.c +1
-1@@ -2315,7 +2315,7 @@ static bool wave5_vpu_enc_check_common_param_valid(struct vpu_instance *inst, param->intra_refresh_mode);return false; } - }; + }return true;
invalid_refresh_argument:drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c +1
-1@@ -92,7 +92,7 @@ static int switch_state(struct vpu_instance *inst, enum vpu_instance_state statebreak ;case VPU_INST_STATE_STOP :break ; - }; + }dev_dbg (inst->dev->dev,"Switch state from %s to %s.\n" ,state_to_str (inst->state),state_to_str (state));Signature · 1 line
2.43.0