diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-09-19 18:10:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-11 13:10:35 -0400 |
commit | 392cc7afbb4d8a649636f7fdd99ed2278f08457e (patch) | |
tree | ea6002978671bf32636b65bb4d02d12a26e5de2e /drivers/media/dvb-core/dvb_demux.c | |
parent | 68d84ae02ff8f2b9c36799058c3ce2a7db7fca67 (diff) | |
download | blackbird-op-linux-392cc7afbb4d8a649636f7fdd99ed2278f08457e.tar.gz blackbird-op-linux-392cc7afbb4d8a649636f7fdd99ed2278f08457e.zip |
media: dvb_demux: mark a boolean field as such
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>
Diffstat (limited to 'drivers/media/dvb-core/dvb_demux.c')
-rw-r--r-- | drivers/media/dvb-core/dvb_demux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb-core/dvb_demux.c b/drivers/media/dvb-core/dvb_demux.c index 6628f80d184f..68e93362c081 100644 --- a/drivers/media/dvb-core/dvb_demux.c +++ b/drivers/media/dvb-core/dvb_demux.c @@ -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)); } |