]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
media: dvb_demux: mark a boolean field as such
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Sep 2017 22:10:13 +0000 (18:10 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 11 Oct 2017 17:10:35 +0000 (13:10 -0400)
The struct dvb_demux_filter.doneq is a boolean.

Mark it as such, as it helps to understand what it does.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-core/dvb_demux.c
drivers/media/dvb-core/dvb_demux.h

index 6628f80d184fd42e4447daf0417f933908fd1119..68e93362c0817c73863592be917fc59e95f9652b 100644 (file)
@@ -898,14 +898,14 @@ static void prepare_secfilters(struct dvb_demux_feed *dvbdmxfeed)
                return;
        do {
                sf = &f->filter;
-               doneq = 0;
+               doneq = false;
                for (i = 0; i < DVB_DEMUX_MASK_MAX; i++) {
                        mode = sf->filter_mode[i];
                        mask = sf->filter_mask[i];
                        f->maskandmode[i] = mask & mode;
                        doneq |= f->maskandnotmode[i] = mask & ~mode;
                }
-               f->doneq = doneq ? 1 : 0;
+               f->doneq = doneq ? true : false;
        } while ((f = f->next));
 }
 
index 045f7fd1a8b1731daea10c86ff88e5db19f4d867..7008879381452a930e2cedd10c90c7196665d032 100644 (file)
@@ -64,7 +64,7 @@ struct dvb_demux_filter {
        struct dmx_section_filter filter;
        u8 maskandmode[DMX_MAX_FILTER_SIZE];
        u8 maskandnotmode[DMX_MAX_FILTER_SIZE];
-       int doneq;
+       bool doneq;
 
        struct dvb_demux_filter *next;
        struct dvb_demux_feed *feed;