Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7547305ybl; Thu, 16 Jan 2020 01:18:17 -0800 (PST) X-Google-Smtp-Source: APXvYqxK7TsmRKAtCm0PzZZiX8LnkFbtup8P+u4vu2bXM4bxCWpuYs+jfxRZbJBlnOqC851KV5mS X-Received: by 2002:a54:4895:: with SMTP id r21mr3436868oic.107.1579166297687; Thu, 16 Jan 2020 01:18:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579166297; cv=none; d=google.com; s=arc-20160816; b=sDWhFgR5BuARMf4X/4YDZBC4KZXly06xpMcFmbQxAGC+1pW0ytpZW9BxzXjX+ZTtd7 N3I8njL8STs66pKSs8fskmF4a/KcRBEsNyCNmQgthPyJLVDhemeSX3z+HF7fcGWymSgM bgOrOiG2VMLaCx25ULVX1Y0QcFRgy/10Bj13WcMdaj+OQs9l8vnGcr7yQWzORpkgexMz xoTSCDPDIW3YSyxDagkTAI9FmmySh5KLTYdvnkEHpoyBBw0owHuzsP+8FiCeOD8cLs15 o/lLBQR8FVQQMuilRzFcM6TUxPuW+N2ak/c6dH3pSj0EeDO+9Xhg7UBzqMrcaOxTi5zz NdWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=QhBf2bZRf2y6OKHabALOzlV6xz0AtZ9wu2OGxtbRPlE=; b=fIWbuSBtCEfeQO5NPxnysiOrXGpG/nJ+0s7k512Gc99LfpnmEc7bElhBQIW2xkxGbb gyXIAf5KXYEO4OrsDC9+WC4/dT1lJkwVKd/pSyoM+qxUaiAxI3XZ+Ql5RuY5rPyEqSIz s4/qhmYAkGr9VDqkkH50lRf7Hz/PmwDBQBbCduw1H2R3bRYUHnmnoYL+hBNcBFRzM+1t QswyXv3NDO4iBM9m3JCoiPRyxUPdTeozbXi/J5V93l3tli19tuQYGn4kRRVnwUywhhTz 4PP6JE8aCMeMgo3MQYnDpqN4rnunI/sTY66OGez2pCgcRhKdhaKtAPeRdUZsG1oHXhBD NGHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f203si11015101oib.56.2020.01.16.01.18.05; Thu, 16 Jan 2020 01:18:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729476AbgAPJRN (ORCPT + 99 others); Thu, 16 Jan 2020 04:17:13 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:36508 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726684AbgAPJRN (ORCPT ); Thu, 16 Jan 2020 04:17:13 -0500 Received: from localhost (82-95-191-104.ip.xs4all.nl [82.95.191.104]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 0EBE615B203EF; Thu, 16 Jan 2020 01:17:10 -0800 (PST) Date: Thu, 16 Jan 2020 01:17:08 -0800 (PST) Message-Id: <20200116.011708.119845983010961103.davem@davemloft.net> To: blackgod016574@gmail.com Cc: tglx@linutronix.de, alexios.zavras@intel.com, allison@lohutok.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: nfc: Removing unnecessaey code in nci_open_device() From: David Miller In-Reply-To: <20200116025204.GA20032@hunterzg-yangtiant6900c-00> References: <20200116025204.GA20032@hunterzg-yangtiant6900c-00> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 16 Jan 2020 01:17:12 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gen Zhang Date: Thu, 16 Jan 2020 10:52:04 +0800 > In nci_open_device(), since we already call clear_bit(), so set ndev->flags > to 0 is not needed. > > Signed-off-by: Gen Zhang There are several bits in this flags value, not just the one managed here in this function (NCI_INIT). This assignment is harmless and makes the code easier to audit, therefore I am not applying this patch.