Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp1529837rwo; Sat, 22 Jul 2023 16:05:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFvXP0MRmaxkxTBO6ijorChrrn8USS9Q2abn+VbbA2ZdEjzzl4k08I6CncSiHuOAoFIQAKE X-Received: by 2002:a05:6a20:12cb:b0:137:c971:6a0c with SMTP id v11-20020a056a2012cb00b00137c9716a0cmr7202494pzg.31.1690067150611; Sat, 22 Jul 2023 16:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690067150; cv=none; d=google.com; s=arc-20160816; b=UsNi36MxqZxXEnabmpXz4IOYbc9z6xoJr2Efd6UIDumCGn7I8SpPZqRhPAk/HAHFUn bfQltGP90BVUFhs8jmFqj6x+HU9umhosd114ohr/WwDxA4HQ3aXd9RRzUijS27rw7OkF EevwVZ9cuzRRhBrtA7q9zW1yKICLOjikBgvOqjzT+iudoyMHtLTymKpMqehBQLz3UBY9 UMWPCFOKssVKRRszVNcWgCD9FvpPX6d5lwRWrAMQk6ejABqN0XtV+Abxl32PmW83FpBa soZhrpt1b75gRIwkIsvVENzBkzYR0EdgXjjXcvwATqA+bYmaj0SU8HmN+2UVEKiRBfZk BNJQ== 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:date:subject:cc:to:from :dkim-signature; bh=g4tY2GuOM7XF3DCI8b76kqr55OfGzK0tioQlStQn52s=; fh=gg1zY69yI7mFoKEnCnXO1Vu/r393McU5cvSfkkQtXvw=; b=rCtL4iwsoDiHtyyGyfRkrEugu+9FFIddEUy31JD3K32n3ZuVYsM/R8UwewoxCebLCw RoBI0zlaFlQ3puEN4isp3ACKVTWUXx1WLSHMDzUGDTr0/kT3iVenCuiSLN05ZF0WDlJO WXugY19xpiJjQVRyU7YkOi51mLcJkuxqEtiBzdAQ0/fJJHQAVcQ9grYmL3T8e0o0BCkA tIN50lYx+OT83dvcGJ7eR2Oe5J1zZuB84nt5A+NUPbUZkxAhPwfZULG4l9JuksJYgqqc 6HbyFo5UMQaIyMjVWFBULhSlJRC03/rlfFGSekdZGi9fqIaBL6FTgaTEShz1FE2MKd6H M7TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=ApX7fxDy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b26-20020a6567da000000b0056399eeef88si1958394pgs.843.2023.07.22.16.05.38; Sat, 22 Jul 2023 16:05:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20221208 header.b=ApX7fxDy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbjGVV7o (ORCPT + 99 others); Sat, 22 Jul 2023 17:59:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjGVV7m (ORCPT ); Sat, 22 Jul 2023 17:59:42 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3516A2123 for ; Sat, 22 Jul 2023 14:59:30 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-7835c92c373so97179939f.0 for ; Sat, 22 Jul 2023 14:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1690063169; x=1690667969; 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=g4tY2GuOM7XF3DCI8b76kqr55OfGzK0tioQlStQn52s=; b=ApX7fxDyQFSjWFbkswQ6ONJQ/2B6R3/UfF2kiS4kQSEjPBgoURIyeVVhk0ZNjz3O/q kkic6sftOpZF8YydDQQK4oxPm0p7zYliaN64hSqHMh6py6xZhLmt9tXChoRT9PP/O9jU a74cxDd74UqISD/VCzSerGY9P/peTnIUpnC1KstK0Mz7v8WQWY+iTQr5+nTrxERcH6DY qXDEPSROzETCGQJSpP1eCFHkc2H6Zh+oz4cjPEYfO6bKyC3anzcN5wWfqQGomHALCbZI hsHyG8Tzu3i+siD07SeSPSlrrtkBxofZBbDOE1AonoUUZwE/NJwTOXXiJR3T5Ow80AEF NN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690063169; x=1690667969; 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=g4tY2GuOM7XF3DCI8b76kqr55OfGzK0tioQlStQn52s=; b=i73MdzdUYEDZyrAbnF7+SXS8AS7PgdiRCFjgiUOXJdYELsT1uKW76zepiIj30uXxNf ltoBQzOXtS2AME5dXhS41Ga4aTU48i1oEnQGS+R7zaxD0uwf49l0FhCdr9f6sIWpYCQO 6gqnnpebh8fq/g+z1Jud/s4DHf/TsCwHYrWWdoCrKszTIYBOsSOMQ1tI9EKqbgrnI7Li /GZ9pHrCR62w4zWja/uWefVL5ozbSaVdeb/K8Tz69Qe7oKIRT0leeZ64rXkjxwqSectj qSEaVmVWkUMV3vPMsqw05s1bVM2imUKKEcjYOOoAqzhzpSMBdhpVgmFGSKQFBp+fqbAi EEuA== X-Gm-Message-State: ABy/qLZ/82nZKoHSR7cB/jtuiW8JVZdmSeACxECcG4Z/FYfUaHgxYllt 6aRLmKO5WHQAkvmJiQCtSe6J4JnnB5NvvQ== X-Received: by 2002:a05:6e02:1ba5:b0:345:fe2d:56f with SMTP id n5-20020a056e021ba500b00345fe2d056fmr2181422ili.14.1690063169593; Sat, 22 Jul 2023 14:59:29 -0700 (PDT) Received: from localhost.localdomain ([161.97.244.155]) by smtp.gmail.com with ESMTPSA id f16-20020a02cad0000000b0042b2d9fbbecsm1874673jap.119.2023.07.22.14.59.29 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 22 Jul 2023 14:59:29 -0700 (PDT) From: Franziska Naepelt To: franziska.naepelt@googlemail.com Cc: gregkh@linuxfoundation.org, hdegoede@redhat.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 9/9] staging: rtl8723bs: ioctl_linux: Fix comparison to false Date: Sat, 22 Jul 2023 23:59:27 +0200 Message-Id: <20230722215927.4443-1-franziska.naepelt@googlemail.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20230722215330.4114-1-franziska.naepelt@googlemail.com> References: <20230722215330.4114-1-franziska.naepelt@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following checkpatch issue: - CHECK: Using comparison to false is error prone Signed-off-by: Franziska Naepelt --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index 2896d64e13be..54a2998e837d 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -832,7 +832,7 @@ static int rtw_add_sta(struct net_device *dev, struct ieee_param *param) psta->htpriv.ht_option = false; } - if (pmlmepriv->htpriv.ht_option == false) + if (!pmlmepriv->htpriv.ht_option) psta->htpriv.ht_option = false; update_sta_info_apmode(padapter, psta); -- 2.39.2 (Apple Git-143)