Commit ef59a62a authored by Markus Elfring's avatar Markus Elfring Committed by Tejun Heo

pata_it821x: Delete an error message for a failed memory allocation in it821x_firmware_command()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 3e342770
...@@ -658,10 +658,10 @@ static u8 *it821x_firmware_command(struct ata_port *ap, u8 cmd, int len) ...@@ -658,10 +658,10 @@ static u8 *it821x_firmware_command(struct ata_port *ap, u8 cmd, int len)
u8 status; u8 status;
int n = 0; int n = 0;
u16 *buf = kmalloc(len, GFP_KERNEL); u16 *buf = kmalloc(len, GFP_KERNEL);
if (buf == NULL) {
printk(KERN_ERR "it821x_firmware_command: Out of memory\n"); if (!buf)
return NULL; return NULL;
}
/* This isn't quite a normal ATA command as we are talking to the /* This isn't quite a normal ATA command as we are talking to the
firmware not the drives */ firmware not the drives */
ap->ctl |= ATA_NIEN; ap->ctl |= ATA_NIEN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment