media: ti-vpe: Simplify bool comparison
Fix the following coccicheck warning: ./drivers/media/platform/ti-vpe/vpdma.c:946:5-26: WARNING: Comparison to bool. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
71bb1b99a2
commit
6e47269cb3
@ -942,8 +942,7 @@ int vpdma_hwlist_alloc(struct vpdma_data *vpdma, void *priv)
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&vpdma->lock, flags);
|
||||
for (i = 0; i < VPDMA_MAX_NUM_LIST &&
|
||||
vpdma->hwlist_used[i] == true; i++)
|
||||
for (i = 0; i < VPDMA_MAX_NUM_LIST && vpdma->hwlist_used[i]; i++)
|
||||
;
|
||||
|
||||
if (i < VPDMA_MAX_NUM_LIST) {
|
||||
|
Loading…
Reference in New Issue
Block a user