lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 10 Jan 2022 13:40:16 +0100
From:   Hans Verkuil <hverkuil@...all.nl>
To:     cgel.zte@...il.com, prabhakar.csengg@...il.com
Cc:     mchehab@...nel.org, linux-media@...r.kernel.org,
        linux-kernel@...r.kernel.org, Minghao Chi <chi.minghao@....com.cn>,
        Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH platform-next] media/platform: remove redundant bpp
 variable

Hi Minghao Chi,

Please mention the driver in the subject, so: 'media/platform/am437x:'

Also your Signed-off-by email differs from the one you posted from, please
keep them the same.

Regards,

	Hans

On 15/12/2021 07:03, cgel.zte@...il.com wrote:
> From: Minghao Chi <chi.minghao@....com.cn>
> 
> Return value directly instead of taking this in another
> redundant variable.
> 
> Reported-by: Zeal Robot <zealci@....com.cn>
> Signed-off-by: Minghao Chi <chi.minghao@....com.cn>
> ---
>  drivers/media/platform/am437x/am437x-vpfe.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/media/platform/am437x/am437x-vpfe.c b/drivers/media/platform/am437x/am437x-vpfe.c
> index 2dfae9bc0bba..dc3ef0708f14 100644
> --- a/drivers/media/platform/am437x/am437x-vpfe.c
> +++ b/drivers/media/platform/am437x/am437x-vpfe.c
> @@ -143,13 +143,12 @@ static unsigned int __get_bytesperpixel(struct vpfe_device *vpfe,
>  {
>  	struct vpfe_subdev_info *sdinfo = vpfe->current_subdev;
>  	unsigned int bus_width = sdinfo->vpfe_param.bus_width;
> -	u32 bpp, bus_width_bytes, clocksperpixel;
> +	u32 bus_width_bytes, clocksperpixel;
>  
>  	bus_width_bytes = ALIGN(bus_width, 8) >> 3;
>  	clocksperpixel = DIV_ROUND_UP(fmt->bitsperpixel, bus_width);
> -	bpp = clocksperpixel * bus_width_bytes;
>  
> -	return bpp;
> +	return clocksperpixel * bus_width_bytes;
>  }
>  
>  /*  Print Four-character-code (FOURCC) */

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ