Messages in this thread | | | Date | Thu, 16 Jan 2020 01:17:08 -0800 (PST) | Subject | Re: [PATCH] net: nfc: Removing unnecessaey code in nci_open_device() | From | David Miller <> |
| |
From: Gen Zhang <blackgod016574@gmail.com> 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 <blackgod016574@gmail.com>
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.
| |