aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>2014-10-30 15:12:53 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-30 20:12:05 (GMT)
commit7ede7af3fd5f92966d328586f7f42b378fa17d83 (patch)
treecddf4277a5116a8b61f157c9de20d2a8de020c9f /drivers/staging/media
parent7499b702f0873b670cbd769c9bfeb437e9fa4c55 (diff)
staging: media: lirc: lirc_zilog.c: remove unnecessary 'out of memory' message
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>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/lirc/lirc_zilog.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/media/lirc/lirc_zilog.c b/drivers/staging/media/lirc/lirc_zilog.c
index 11a7cb1..52f8e91 100644
--- a/drivers/staging/media/lirc/lirc_zilog.c
+++ b/drivers/staging/media/lirc/lirc_zilog.c
@@ -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;

Privacy Policy