diff options
author | Tim Collier <osdevtc@gmail.com> | 2018-08-28 20:26:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-10 11:24:23 +0200 |
commit | 8627995cf711ed0e9ff84cf34b5b389fa01fa4c9 (patch) | |
tree | 1502fdea2906976a29c942e4abb5bbef96574c39 /drivers/staging/wlan-ng/prism2fw.c | |
parent | 205d34e90ff8f9891a9fe812a0c15bd2198367ae (diff) | |
download | linux-stable-8627995cf711ed0e9ff84cf34b5b389fa01fa4c9.tar.gz linux-stable-8627995cf711ed0e9ff84cf34b5b389fa01fa4c9.tar.bz2 linux-stable-8627995cf711ed0e9ff84cf34b5b389fa01fa4c9.zip |
staging: wlan-ng: remove redundant code in "#if 0" blocks
Remove two blocks of code that checkpatch identified as redundant
because they were enclosed in "#if...#endif". In the case of
prism2fw.c the associated "TODO" comment was retained.
Signed-off-by: Tim Collier <osdevtc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/prism2fw.c')
-rw-r--r-- | drivers/staging/wlan-ng/prism2fw.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/prism2fw.c b/drivers/staging/wlan-ng/prism2fw.c index 4fb91294570d..ddcaac648bd5 100644 --- a/drivers/staging/wlan-ng/prism2fw.c +++ b/drivers/staging/wlan-ng/prism2fw.c @@ -706,7 +706,7 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, pr_warn("warning: Failed to find PDR for plugrec 0x%04x.\n", s3plug[i].itemcode); continue; /* and move on to the next PDR */ -#if 0 + /* MSM: They swear that unless it's the MAC address, * the serial number, or the TX calibration records, * then there's reasonable defaults in the f/w @@ -714,9 +714,6 @@ static int plugimage(struct imgchunk *fchunk, unsigned int nfchunks, * should only be a warning, not fatal. * TODO: add fatals for the PDRs mentioned above. */ - result = 1; - continue; -#endif } /* Validate plug len against PDR len */ |