Staging: kpc2000: Remove warning: "dubious: x | !y" detected by sparse
authorFelipe Cardoso Resende <felipecardoso.fcr@gmail.com>
Fri, 17 Jan 2020 00:42:14 +0000 (21:42 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jan 2020 08:44:43 +0000 (09:44 +0100)
commit27f391a5d628f860e2245f59f97461cbd22433f1
tree6835b36d2dde229390332e12d2148d4327680ac4
parentc318f074d9fdeae16e19cbb2ed53b50d2bcdfdb8
Staging: kpc2000: Remove warning: "dubious: x | !y" detected by sparse

Sparse complains about "dubious: x | !y".

This patch adds some macros to make it clear if a flag will be enabled or
not so Sparse stops complaining about dubious code construct.

Signed-off-by: Felipe Cardoso Resende <felipecardoso.fcr@gmail.com>
Link: https://lore.kernel.org/r/20200117004214.GA1800@felipe-pc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_i2c.c