Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4239285pxf; Tue, 23 Mar 2021 06:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaqRqMtJLr/hNrfvyZ/2J+J3ypK7Gc94IwMeZ5mmcIyRCpFQTS9V89+YkzqfkKHrgn/+zQ X-Received: by 2002:aa7:ce16:: with SMTP id d22mr4554002edv.95.1616505585229; Tue, 23 Mar 2021 06:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616505585; cv=none; d=google.com; s=arc-20160816; b=BkeqRvfFUernrAyrbeujA2gfJEFSgGEc9dItt5CF4+j2snn7dMnNLdU9QA6LoCQV9Q DDXYuQCA8BJeMoGU46Z1dwc7rhf9Ucf+uk8I+cMsHVm+iWcsNaNRy0vMmDdKqNudSCne LPEAzaNPQybA4O7IKofVtXv42AMotXCf/rQwGpUzywinNE6RkrnaWxSBGjWNQDE9ID8X uED38cAucMq0Fq1a+Qyw//+aONQ7HaiH1PoZeKw+Vakkh0Y2tIIeetg7HfK3ZXVnoGAo d2c23MyLcphT0tQcHazrKvvUBj7sUpjmp+9O6aCVBRYq83ZFc+HbsqXwNL06/6cIXfMQ B0pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=79KGBZZZ05AWiag0jzsXS7Md2Hwnx+H65VOuRggiAEQ=; b=mX7mlaChUZlkIk6QdqMEZkQzNacGSxgfevJFqfOt4K2vRn626UwRvC6zm0kC2C6Ct3 NkCH8s96wp7LGJL8KXsFxIrRdR9EXNSBQtCdfR3J1Le1jqxmbS9zL4nZGJYIJSczkamN PekDK6m9Nb4bZ+SqWLcWhTGVsuNjEvD9tZHOTjEpxxZNngFC2Z/j/v9Aa1bq3Su3h8I8 uzl+TEnuF32pZF8dibeiZK8iuQHr9a+ApTY+5DrWWzBLEaMXJu9gpSdHqY5bRUfLUGrr X1qFdiOTuLneXpBSflcKRXxYUAaLJ/xmlLZV3snfK2vYe+DNIGjg1i5APcJBnl4M1j/W k7aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QQcBRhqv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si13208160ede.310.2021.03.23.06.19.22; Tue, 23 Mar 2021 06:19:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QQcBRhqv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231759AbhCWNRm (ORCPT + 99 others); Tue, 23 Mar 2021 09:17:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:45966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231760AbhCWNQT (ORCPT ); Tue, 23 Mar 2021 09:16:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD84561990; Tue, 23 Mar 2021 13:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616505379; bh=Cj5IOH7chrcZeUM/Ve74t3Qs1c93JnmkzNVeGi2sh6c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QQcBRhqvQgRA28Ir5zzpvQCz+MxRHBDR0+75BeeUG+lae6YjrXQAB9WZgn5t0lV0m h/QBfXOkDbrlaveBAIo2aCz//Jvhq3tautTV5ymZV9IeCNxLECYlUQ4VcCbhJyVb0B G9v03RwNQ+A1ixuHl3ThUlbF5Tf5tfGeN2wDgvhM3iXP7LqiITZmWxInn5rP3EJ3xL hMdyGi1UanMpl7qJ2PSweVR6PpYkqdDJ6qhAbd3aHWJNIODeYMarsUgWgCMHipHcHo LwYAjp0f5uvJZH7phycufFOdVYhGE4VLzylVgbezym8NpYUkIU299j/6B1ghgP0pI3 wqY2qMDq89S2w== Date: Tue, 23 Mar 2021 14:16:14 +0100 From: Mauro Carvalho Chehab To: Philipp Gerlesberger Cc: linux-kernel@vger.kernel.org, ij72uhux@stud.informatik.uni-erlangen.de, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@i4.cs.fau.de, gregkh@linuxfoundation.org, sakari.ailus@linux.intel.com Subject: Re: [PATCH v2 12/12] media: atomisp: Fix LOGICAL_CONTINUATIONS Message-ID: <20210323141614.6fcb195b@coco.lan> In-Reply-To: <20201214110156.6152-13-Philipp.Gerlesberger@fau.de> References: <20201214110156.6152-1-Philipp.Gerlesberger@fau.de> <20201214110156.6152-13-Philipp.Gerlesberger@fau.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 14 Dec 2020 12:01:56 +0100 Philipp Gerlesberger escreveu: > Logical continuations should be on the previous line > > Co-developed-by: Andrey Khlopkov > Signed-off-by: Andrey Khlopkov > Signed-off-by: Philipp Gerlesberger > --- > 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