staging: media: lirc: lirc_zilog.c: remove unnecessary 'out of memory' message
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Thu, 30 Oct 2014 15:12:53 +0000 (17:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 20:12:05 +0000 (13:12 -0700)
This patch fixes the following the following checkpatch.pl warning:

Possible unnecessary 'out of memory' message

The warning was issued for the file lirc_zilog.c after changing
two custom printk messages to dev_err. The dev_err calls were
simply removed.

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_zilog.c

index 11a7cb128d9e298380ed77f85ee9be0e19b0a640..52f8e91a6383db820de1dee656aea0c5edb02179 100644 (file)
@@ -771,7 +771,6 @@ static int fw_load(struct IR_tx *tx)
        /* Parse the file */
        tx_data = vmalloc(sizeof(*tx_data));
        if (tx_data == NULL) {
-               dev_err(tx->ir->l.dev, "out of memory\n");
                release_firmware(fw_entry);
                ret = -ENOMEM;
                goto out;
@@ -781,7 +780,6 @@ static int fw_load(struct IR_tx *tx)
        /* Copy the data so hotplug doesn't get confused and timeout */
        tx_data->datap = vmalloc(fw_entry->size);
        if (tx_data->datap == NULL) {
-               dev_err(tx->ir->l.dev, "out of memory\n");
                release_firmware(fw_entry);
                vfree(tx_data);
                ret = -ENOMEM;