From: Christoph Jaeger Date: Mon, 30 Sep 2013 16:13:12 +0000 (-0300) Subject: [media] drxd_hard: remove unused SIZEOF_ARRAY X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=221ff3d0d59bcb20671e3e36b8417b52ca0de89f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [media] drxd_hard: remove unused SIZEOF_ARRAY SIZEOF_ARRAY is not used (anymore). Besides, ARRAY_SIZE, defined in include/linux/kernel.h, should be used rather than explicitly coding some variant of it. Signed-off-by: Christoph Jaeger Reviewed-by: Sakari Ailus Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/drxd_hard.c b/drivers/media/dvb-frontends/drxd_hard.c index 9a2134792cfa..cbd7c921a628 100644 --- a/drivers/media/dvb-frontends/drxd_hard.c +++ b/drivers/media/dvb-frontends/drxd_hard.c @@ -46,10 +46,6 @@ #define DRX_I2C_MODEFLAGS 0xC0 #define DRX_I2C_FLAGS 0xF0 -#ifndef SIZEOF_ARRAY -#define SIZEOF_ARRAY(array) (sizeof((array))/sizeof((array)[0])) -#endif - #define DEFAULT_LOCK_TIMEOUT 1100 #define DRX_CHANNEL_AUTO 0