[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210323141614.6fcb195b@coco.lan>
Date: Tue, 23 Mar 2021 14:16:14 +0100
From: Mauro Carvalho Chehab <mchehab@...nel.org>
To: Philipp Gerlesberger <Philipp.Gerlesberger@....de>
Cc: linux-kernel@...r.kernel.org,
ij72uhux@...d.informatik.uni-erlangen.de,
linux-media@...r.kernel.org, devel@...verdev.osuosl.org,
linux-kernel@...cs.fau.de, gregkh@...uxfoundation.org,
sakari.ailus@...ux.intel.com
Subject: Re: [PATCH v2 12/12] media: atomisp: Fix LOGICAL_CONTINUATIONS
Em Mon, 14 Dec 2020 12:01:56 +0100
Philipp Gerlesberger <Philipp.Gerlesberger@....de> escreveu:
> Logical continuations should be on the previous line
>
> Co-developed-by: Andrey Khlopkov <ij72uhux@...d.informatik.uni-erlangen.de>
> Signed-off-by: Andrey Khlopkov <ij72uhux@...d.informatik.uni-erlangen.de>
> Signed-off-by: Philipp Gerlesberger <Philipp.Gerlesberger@....de>
> ---
> drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c
> index 2f1c2df59f71..7d44070c7114 100644
> --- a/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c
> +++ b/drivers/staging/media/atomisp/pci/runtime/queue/src/queue.c
> @@ -24,8 +24,8 @@
> *****************************************************************************/
> int ia_css_queue_local_init(ia_css_queue_t *qhandle, ia_css_queue_local_t *desc)
> {
> - if (NULL == qhandle || NULL == desc
> - || NULL == desc->cb_elems || NULL == desc->cb_desc) {
> + if (NULL == qhandle || NULL == desc ||
> + NULL == desc->cb_elems || NULL == desc->cb_desc) {
Nah, there are coding style issues here... we usually do:
if (foo == CONSTANT)
instead of:
if (CONSTANT == foo)
Also, we usually simplify checks for null. So, the above should
be, instead, just:
if (!qhandle || !desc || !desc->cb_elements || !desc->cb_desc)
> /* Invalid parameters, return error*/
> return -EINVAL;
> }
Thanks,
Mauro
Powered by blists - more mailing lists