media: dvb-frontends: Remove unused SIZEOF_ARRAY
PATCH 1/1 media: dvb-frontends: 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 <[email protected]>
--- drivers/media/dvb-frontends/drxd_hard.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/media/dvb-frontends/drxd_hard.c +0 -4
@@ -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
Signature · 1 line
1.8.3.1
Quoted 5 lines · Christoph Jaeger
SIZEOF_ARRAYis not used (anymore). Besides,ARRAY_SIZE, defined ininclude/linux/kernel.h, should be used rather than explicitly coding some variant of it.Signed-off-by Christoph Jaeger <[email protected]>
Reviewed-by Sakari Ailus <[email protected]>
Signature · 2 lines
Sakari Ailus e-mail: [email protected] XMPP: [email protected]