]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Remove locking around txr->dev_state
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 18 Jul 2016 20:02:47 +0000 (13:02 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 17:59:56 +0000 (12:59 -0500)
commitdd7d6a3e4894f1a200285870ca61d649cd931f89
tree125e50a80cb8604e532586a246a952c1e1841e67
parent63b98f697e50b6f246eca366d103fcb6c036f68f
bnxt_en: Remove locking around txr->dev_state

Orabug: 24567991

txr->dev_state was not consistently manipulated with the acquisition of
the per-queue lock, after further inspection the lock does not seem
necessary, either the value is read as BNXT_DEV_STATE_CLOSING or 0.

Reported-by: coverity (CID 1339583)
Fixes: c0c050c58d840 ("bnxt_en: New Broadcom ethernet driver.")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit cbce91cad4ee39070bf3c7873767194e4be88e16)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c