aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci_seattle.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-06-28 12:11:31 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-06-28 12:11:31 -0700
commitde4921ce9b3bc68aa530249df8d85cde8edc0968 (patch)
treefaf4e3ac30a5b3af103a329facffdd5dff3b7c9e /drivers/ata/ahci_seattle.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid (diff)
parentata: sata_mv: fix mis-conversion in mv_write_cached_reg() (diff)
downloadlinux-dev-de4921ce9b3bc68aa530249df8d85cde8edc0968.tar.xz
linux-dev-de4921ce9b3bc68aa530249df8d85cde8edc0968.zip
Merge branch 'for-4.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
Pull libata fixes from Tejun Heo: "Two trivial fixes - one for a bug in the allocation failure path and the other a compiler warning fix" * 'for-4.7-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata: ata: sata_mv: fix mis-conversion in mv_write_cached_reg() ata: fix return value check in ahci_seattle_get_port_info()
Diffstat (limited to 'drivers/ata/ahci_seattle.c')
-rw-r--r--drivers/ata/ahci_seattle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci_seattle.c b/drivers/ata/ahci_seattle.c
index 6e702ab57220..1d31c0c0fc20 100644
--- a/drivers/ata/ahci_seattle.c
+++ b/drivers/ata/ahci_seattle.c
@@ -137,7 +137,7 @@ static const struct ata_port_info *ahci_seattle_get_port_info(
u32 val;
plat_data = devm_kzalloc(dev, sizeof(*plat_data), GFP_KERNEL);
- if (IS_ERR(plat_data))
+ if (!plat_data)
return &ahci_port_info;
plat_data->sgpio_ctrl = devm_ioremap_resource(dev,