forked from luck/tmp_suning_uos_patched
ata: pata_artop: remove redundant initialization of pio
pio is initialized and the data is never read, instead it is almost
immediately being updated to a new value. Fix this by removing the
initialization.
Detected by scan-build:
"warning: Value stored to 'pio' during its initialization is never read"
Fixes: 669a5db411
("[libata] Add a bunch of PATA drivers")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
f4ac647694
commit
01bb12e49b
|
@ -242,7 +242,7 @@ static void artop6210_set_dmamode (struct ata_port *ap, struct ata_device *adev)
|
||||||
|
|
||||||
static void artop6260_set_dmamode (struct ata_port *ap, struct ata_device *adev)
|
static void artop6260_set_dmamode (struct ata_port *ap, struct ata_device *adev)
|
||||||
{
|
{
|
||||||
unsigned int pio = adev->pio_mode - XFER_PIO_0;
|
unsigned int pio;
|
||||||
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
|
||||||
u8 ultra;
|
u8 ultra;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user