Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1166386lqp; Fri, 22 Mar 2024 07:25:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWHWe2TLdWFnbDqsjDJgxpcBJ+D3/+oZs5luvoWqLIPuXkSosebqd8BnANj8Z8EZJn9FgdUexbaMwWpf/Aj+jiBW7SbRkW1mMzxVEqzQ== X-Google-Smtp-Source: AGHT+IEThnfcKgJCIKJxeUqQR1xUeAN78lAf9jdf9wnpjkUIdAuySphDGRH2BraIsOLNLcwDvaIz X-Received: by 2002:a17:90b:4f41:b0:2a0:45a9:95d8 with SMTP id pj1-20020a17090b4f4100b002a045a995d8mr867062pjb.19.1711117550751; Fri, 22 Mar 2024 07:25:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711117550; cv=pass; d=google.com; s=arc-20160816; b=BiLkl6/KArPUuk3OaI4MmMsyoNZsav6tvaRDTRnE+Hz4vriJhzvuPzFSCSnKPN+ObL uhXmg+PEAAb3RwQINeKJLKQnp19T6AZT3qTOiD2mYOqAayb0VDeeQPY2bSGqH6rSgmdE gBEjrNnaMBGEwAl0orHs2dA6s8ds7t0phXuzqI+uVFHdkVbdPcLqp+wVjsrfsGZ6Nbi9 iFQjokViivKVptfpKqdUncW3fr7j1jc5kAbE/gzpR8Odp5PLx9yiLn8pKbI24Ak2vCN4 AYQ5fg7ioHmqKlweQjaQU4f2RWOOf3oi6TYVvNA3QpSLSAB77BlgZ4ozlHHa9rRe1Wcx ZrEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZRNA+Pwl3fVN6JGgTXk/JwEXKBanp382ceypg9cPZdc=; fh=vit60HIGrY8uFrYi1xVQtBG5n6F0vm3qOO4RMue7BDk=; b=biq8qCph1hEBGponup1PvK7CALWV1Su1DuS83HEStFg5+1hFcagB14eABMN73wb7+x f/omDMGWVlBejhc0wFlLlr7AM+G7oEXRDg52wufLAK0KGMfrql8CcBWLJdYHPQPM4UJW q29Kiqo4YT8GQWO4augUuQ6DtaQ7i9FV9qpEuHJm7tC4QLXRaXomG1uBn74XU3LDDylS B3o/iPD7fYWQYnQYY9vO0/MiMwKiHh6Da25mk0NQpB/prYeUo5OCIXDFW94KC4Pco7sF 11RC792iQWnK4zF3d0du+lYL4fY/99Nu9m+jeyiI3vGJAyd10wAlMTzLpBq/UPmYreKA /MXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yz1Nyi7V; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-111606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111606-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a3-20020a17090a480300b0029fafe8d311si5712762pjh.62.2024.03.22.07.25.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:25:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Yz1Nyi7V; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-111606-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111606-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B5CD281824 for ; Fri, 22 Mar 2024 14:25:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C19E47F59; Fri, 22 Mar 2024 14:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Yz1Nyi7V" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E5D047A60; Fri, 22 Mar 2024 14:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117540; cv=none; b=jS8ohh5+CjVdB1SVBMqFAsL7Lws3bQAUPiTI7KNP5uHhcWs4ekpTKZkgiPyURfO9LD2jRah5OPj05qgcelNo+bF/LETDM0kWwQPyqqbH5G78hfYkNUTn91vWrS/N488d9SHlZP+/k2HCwUYp5N5lZJpEey9mJ9p7XD8soyzj49I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711117540; c=relaxed/simple; bh=p34/324xP2XXUiHY7h/GE3DoOsaLPBDkUoaF7CbR5ro=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I3A1bPnMoVMXblK8ykf5tauTBISEPMG5yefEy+EnOBhXms4sDwomAJY/c0B5MuaIz80+oYwONVTsamtRFfb74RYuTNVDYZpt/RlAFLrd1LNNGNnaAs0pQuFm58c0qESun/6ofckTIbR7UGarFV40+rWJnpJaTP9jN63D/gZZTww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yz1Nyi7V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6E8EC43399; Fri, 22 Mar 2024 14:25:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711117540; bh=p34/324xP2XXUiHY7h/GE3DoOsaLPBDkUoaF7CbR5ro=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Yz1Nyi7VaAjRIUJ2aXFHrvz2lf7erBm5c0SU0+6squjXOGPIZvxVYw7d79Zyvofez 2bcuX0dqsmIhU6kqfF0f4AKk3/GBAs4I3RxiRmzXdW/cdWnza79lNjiccNYHqQQvd9 B8uUanqtD52mlr2k9Vr710DR2Gg2OYf4tQ6auJ5A= Date: Fri, 22 Mar 2024 15:25:37 +0100 From: Greg KH To: Chandra Pratap Cc: sudipm.mukherjee@gmail.com, dan.carpenter@linaro.org, teddy.wang@siliconmotion.com, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH v3] staging: sm750fb: Replace comparisons with NULL and 0 Message-ID: <2024032226-gorgeous-snowbird-25b1@gregkh> References: <2024032208-blunt-ferocity-22f4@gregkh> <20240322141031.2776-1-chandrapratap3519@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240322141031.2776-1-chandrapratap3519@gmail.com> On Fri, Mar 22, 2024 at 07:40:31PM +0530, Chandra Pratap wrote: > Replace '(opt != NULL)' with '(opt)' and '(*opt != 0)' > with '(*opt != '\0')' to adhere to the coding standards. > > Signed-off-by: Chandra Pratap > --- > drivers/staging/sm750fb/sm750.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c > index 04c1b32a22c5..c4b944f82fb9 100644 > --- a/drivers/staging/sm750fb/sm750.c > +++ b/drivers/staging/sm750fb/sm750.c > @@ -926,7 +926,7 @@ static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src) > goto NO_PARAM; > } > > - while ((opt = strsep(&src, ":")) != NULL && *opt != 0) { > + while ((opt = strsep(&src, ":")) && *opt != '\0') { > dev_info(&sm750_dev->pdev->dev, "opt=%s\n", opt); > dev_info(&sm750_dev->pdev->dev, "src=%s\n", src); > > @@ -1147,7 +1147,7 @@ static int __init lynxfb_setup(char *options) > * strsep() updates @options to pointer after the first found token > * it also returns the pointer ahead the token. > */ > - while ((opt = strsep(&options, ":")) != NULL) { > + while ((opt = strsep(&options, ":"))) { > /* options that mean for any lynx chips are configured here */ > if (!strncmp(opt, "noaccel", strlen("noaccel"))) { > g_noaccel = 1; > -- > 2.34.1 > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what needs to be done here to properly describe this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot