Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1162623lqp; Fri, 22 Mar 2024 07:20:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMrJoCzTmzCWbzOdpqD0t8U7yM9HkuDAl6IpeFgz2utQ3FDX8Ucbsd4rIFqCsroWuZ59qjjit7KybAlkdRX/IA/ft/WjI/ZtuF5AYRvw== X-Google-Smtp-Source: AGHT+IHYkstLsXalETku63rEdJgLNVV87IOAI4H4TCQu3q/M4eFxWMBkHoM+d0siVxdoOUJQ4Mb+ X-Received: by 2002:a05:6a20:7d9f:b0:1a3:ae03:2453 with SMTP id v31-20020a056a207d9f00b001a3ae032453mr603174pzj.3.1711117231019; Fri, 22 Mar 2024 07:20:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711117231; cv=pass; d=google.com; s=arc-20160816; b=wGYU9y6xYbDzCAVnnYvqDrYk4FgBcsSGIsumSyVPnvrprxFkfxDyzjJFUkWIfbTJsM DcumvctjDTsHuzrGxZrA0uRT086mGEsIRxoEljjpstoCPC4n/uPNptvge4ZYTzK2uCcp 3Zyw2WppY642UYJMdXAOTLlo3zqj1haYi3JRl6A2zT5YH7LuIPW5smq3P1csY7N8ZBR9 SAiZIObX0+0khuHQ9mcr4ueznobmfXaWhCBGcwFNrDJFLop2AqXn8vfyqTrYrDin4a3i f44invkHvyAalrNHpKs/2MEVKXfrR5RCeI7+WYIjuLTm2cYJALQRvUkLiuHuYhblphdy GY4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e3h6PneUm3Z4gvfwV64qLMOpLiMWQad8Wzjqdi//Xhw=; fh=uy6sv4tlun8sF+49RkOa/ujPh1VQIBoQ3Us3ufwi39k=; b=yc3KDcekxkCjWGOg8l1qf/dgZ6jqThvXt4JkR0t3y9ZJIjMKy6WCOyJhpVsLBOMuc+ Xl16Ov/u5+AsJBt/8bW5i7iJHTOK8i2gLyswElIiYNtfnKcMvIte2UtumnRfTdkw6qg1 nURSnqRbmQ5s/azLoD7j7QwwkqPsGzKnhrFIlvUVL814Xo9Lk2AKmcGYGha6QJa8wI+L oi+1yYTH9w0rnAwKJAMT9dcVEhDcinwIcpfYAcJVJRDKhRZqHSGQWJKdLSlU857cQJHK 44pILYCxGARS3j9JXX6v52xitrlGMm13c6RpgPnCpmGoeV5Nplu9f8f90k8Mbg1V4YY9 TO+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nHkxsTwo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-111586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id fb12-20020a056a002d8c00b006e6ca891514si2115390pfb.151.2024.03.22.07.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:20:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111586-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=@gmail.com header.s=20230601 header.b=nHkxsTwo; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-111586-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111586-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 A959F28A8C7 for ; Fri, 22 Mar 2024 14:11:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8962847F7F; Fri, 22 Mar 2024 14:11:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nHkxsTwo" Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CEDB4778E; Fri, 22 Mar 2024 14:11:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711116671; cv=none; b=s55+aQwNu9VmDYJiVDdNWwl3pukkX7Kdi2nFHHm9vEt6Pdt4jCCmiRVWheCPWxVhrA9gT2ezbKQIlQEb8DqkNwD8W3qVYKtfAu/1jra+MJCb/SziqlqjKSZmd7oYkK4nr7zPu9AYvB3uUw60GBOvjV8X3AgXpAW6AfM2f9wGFSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711116671; c=relaxed/simple; bh=K5uPUA2OyjgCFH8me7FwNdu+bR7wyQUyYW7gljhoZMM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pzDDXrJvfmKgUyMfo4kGZPkfU7STtC6hppbJRPp4VO1P7d+0u1JiQ/I51+i27b4Rm3INOHc8OGZ+UCSpK5fztfE1rDjDk305tmKOO0AxJ0jZbr1aii0yn7+P/HIIxQ9aELViY1WyRGfUNrGQBDzpRK80G1L7bn6bafqwHc8t04k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nHkxsTwo; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-1e07cd7b798so12034865ad.2; Fri, 22 Mar 2024 07:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711116669; x=1711721469; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e3h6PneUm3Z4gvfwV64qLMOpLiMWQad8Wzjqdi//Xhw=; b=nHkxsTwoC+N0enhgvXaEQstyGAPRLdIb7gf6/MtM3pGQU+hfCOjv/22D9XxlzaWdgY jVuliVI/uCPuy+ytJIv0yMYb1CDKDbnwI1S3N1sw0R1JACXXq6NPlLVJZCDXsYR3lQDr YAsjrolndFI2WuM7m8No3pjY0z36lupShdLDsd4e5ntEW/Jhs/Ui07Rn1I7eZvK94Dk+ 75DjBW0nt2RAwy/z95IMkV59+DNTPkQUZNf89Jvpdyd8hvSjslisLWOcwjVUKXSEBUtq sNt8aBfO71qIMKq+Xtl5NDkebHbqmiAZdD+co/Vz/8jAgGM416ZDL6BytCRsJQKVYW73 VpBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711116669; x=1711721469; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e3h6PneUm3Z4gvfwV64qLMOpLiMWQad8Wzjqdi//Xhw=; b=pTZRaZb6d7BXeJ7W0rWKSaBRB4dCsbmcEX8zMbkWLPqHnT5MgVoP40oDuMaNVBqlQ1 6cuimNDrx/9cshPMcEtDv9YWhun3wNfhXSCxxBa63J0NNOKSRpl7yzkfPZTgTA6Owbub wxrji91sflvxXn13b/8usZCxVHNfBS+FDuKkNneJc/JAnKSsKzXAZRKybQA3WG4UbHEr PkE9rf3BNMfEVMvflL/xwHIwDEhtBtmojyLLpEEVe1vKw+F/jb6UJ4mXBZDT24mNEips 8ryMdUh5V1EpStRGgJnZ7JXefGDiRwwHYb0O9jE3rBxsqC+ALMouugYL/f1rQBKXfmqL z7/g== X-Forwarded-Encrypted: i=1; AJvYcCWO2bHO9QRWM818lusLi0FC9W2oNpZspfQu7QoNf8tRn5YWOW/jPM8n11w/oj9G1BeEnqT1k4gZOgV8608pZXrgugKgAbTwNzqgBigZGdMQ/5RMMXGsfutZ7wQhVuH5Uuq5CSJ5gv7sFPQ= X-Gm-Message-State: AOJu0YwvwwEulZtN9Ay39y4xCQL4hINCPeDeayZOIcHMw2w+J1zw+Y/v lVKR51iOZQbCiLwwwnKlB7BjzJ1c+W8bQ8HUgaZsfJxXI0l8M2ZU X-Received: by 2002:a17:903:11c9:b0:1dd:a16e:dea4 with SMTP id q9-20020a17090311c900b001dda16edea4mr3075150plh.67.1711116669312; Fri, 22 Mar 2024 07:11:09 -0700 (PDT) Received: from Ubuntu2.. ([14.139.121.51]) by smtp.googlemail.com with ESMTPSA id kg8-20020a170903060800b001db8a5ea0a3sm1956577plb.94.2024.03.22.07.11.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:11:08 -0700 (PDT) From: Chandra Pratap To: Cc: sudipm.mukherjee@gmail.com, dan.carpenter@linaro.org, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, Chandra Pratap Subject: [PATCH v3] staging: sm750fb: Replace comparisons with NULL and 0 Date: Fri, 22 Mar 2024 19:40:31 +0530 Message-Id: <20240322141031.2776-1-chandrapratap3519@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <2024032208-blunt-ferocity-22f4@gregkh> References: <2024032208-blunt-ferocity-22f4@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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