Re: [PATCH 2/2] staging: sm750fb: Remove unused return value in program_mode_registers()
From: Dan Carpenter
Date: Wed Oct 18 2023 - 05:34:53 EST
On Wed, Oct 18, 2023 at 12:07:38PM +0300, Dorcas AnonoLitunya wrote:
> -static int program_mode_registers(struct mode_parameter *mode_param,
> - struct pll_value *pll)
> +static void program_mode_registers(struct mode_parameter *mode_param,
> + struct pll_value *pll)
> {
> int ret = 0;
> int cnt = 0;
> @@ -202,7 +202,6 @@ static int program_mode_registers(struct mode_parameter *mode_param,
> } else {
> ret = -1;
No need to set ret here.
> }
> - return ret;
> }
regards,
dan carpenter