From: Brad Love Date: Tue, 6 Mar 2018 19:15:00 +0000 (-0500) Subject: media: cx231xx: Use constant instead of hard code for max X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1dd2ce0e866c5ced6ba66360e24ed3b141112e26;p=openwrt%2Fstaging%2Fblogic.git media: cx231xx: Use constant instead of hard code for max Nit regarding hard coded value. Signed-off-by: Brad Love Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c index 3a5ed2a8209b..d945ae51851b 100644 --- a/drivers/media/usb/cx231xx/cx231xx-dvb.c +++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c @@ -53,9 +53,10 @@ DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); #define CX231XX_DVB_NUM_BUFS 5 #define CX231XX_DVB_MAX_PACKETSIZE 564 #define CX231XX_DVB_MAX_PACKETS 64 +#define CX231XX_DVB_MAX_FRONTENDS 2 struct cx231xx_dvb { - struct dvb_frontend *frontend[2]; + struct dvb_frontend *frontend[CX231XX_DVB_MAX_FRONTENDS]; /* feed count management */ struct mutex lock;