Re: [PATCH] net: nfc: Removing unnecessaey code in nci_open_device()

From: David Miller
Date: Thu Jan 16 2020 - 04:17:15 EST


From: Gen Zhang <blackgod016574@xxxxxxxxx>
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@xxxxxxxxx>

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.