From: Mauro Carvalho Chehab Date: Tue, 15 May 2012 12:13:28 +0000 (-0300) Subject: [media] saa7134: remove unused log_err() macro X-Git-Tag: firefly_0821_release~3680^2~275^2~2189 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=626f95a3e1ee1a227bf447d60f98166b87ea7f8b;p=firefly-linux-kernel-4.4.55.git [media] saa7134: remove unused log_err() macro As reported by Masanari, this macro is using "KERN_ERR" instead of "KERN_ERROR". That would lead into a compilation breakage, if this macro were used somewhere inside the driver. Instead of fixing the macro, as originally proposed, let's just remove the dead code. Reported-by: Masanari Iida Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/saa7164/saa7164.h b/drivers/media/video/saa7164/saa7164.h index 742b34103b5d..8d120e3baf70 100644 --- a/drivers/media/video/saa7164/saa7164.h +++ b/drivers/media/video/saa7164/saa7164.h @@ -611,11 +611,6 @@ extern unsigned int saa_debug; printk(KERN_WARNING "%s: " fmt, dev->name, ## arg);\ } while (0) -#define log_err(fmt, arg...)\ - do { \ - printk(KERN_ERROR "%s: " fmt, dev->name, ## arg);\ - } while (0) - #define saa7164_readl(reg) readl(dev->lmmio + ((reg) >> 2)) #define saa7164_writel(reg, value) writel((value), dev->lmmio + ((reg) >> 2))