]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
staging: rtl8723bs: remove implicit int->bool conversions
authorAishwarya Pant <aishpant@gmail.com>
Mon, 9 Oct 2017 16:51:17 +0000 (22:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:10:36 +0000 (16:10 +0200)
commit42b3b621d981529ee11a8362930b43895730c28c
tree8e4ed817a13277f002fc3e2ced3d4e55ac5bbea8
parentb739ea41363b81e47bcb6c49d9df32b45259388a
staging: rtl8723bs: remove implicit int->bool conversions

Implicit type conversions are bad; they hinder readability of code and
have potential to cause bugs. Here the variable wait_ack is always
supplied a bool value while in function declarations it is defined as an
int type. Fix it by defining wait_ack a bool type in all usages.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c