summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8712/osdep_intf.h
diff options
context:
space:
mode:
authorMauro Dreissig <mukadr@gmail.com>2020-07-05 17:35:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-10 14:53:59 +0300
commit4e4a6b7c18ef21abe8771f131c1ef80655769adb (patch)
tree21fb0ce1a3bca56076cc44d6674a7db18fbc55ee /drivers/staging/rtl8712/osdep_intf.h
parent4911537c6b4115f4fd49e1190013555681735d74 (diff)
downloadlinux-4e4a6b7c18ef21abe8771f131c1ef80655769adb.tar.xz
staging: rtl8712: Simplify expressions with boolean logic
Simplify some expressions by using boolean operations. Signed-off-by: Mauro Dreissig <mukadr@gmail.com> Link: https://lore.kernel.org/r/20200705143552.9368-3-mukadr@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/osdep_intf.h')
-rw-r--r--drivers/staging/rtl8712/osdep_intf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h
index 2cc25db1a91d..9e75116c987e 100644
--- a/drivers/staging/rtl8712/osdep_intf.h
+++ b/drivers/staging/rtl8712/osdep_intf.h
@@ -17,7 +17,7 @@
#include "osdep_service.h"
#include "drv_types.h"
-#define RND4(x) (((x >> 2) + (((x & 3) == 0) ? 0 : 1)) << 2)
+#define RND4(x) (((x >> 2) + ((x & 3) != 0)) << 2)
struct intf_priv {
u8 *intf_dev;