[PATCH v2] Staging: kpc2000: Remove warning: "dubious: x | !y" detected by sparse

2020-01-16 Thread Felipe Cardoso Resende
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 --- Changes in v2: - Add "Staging: kpc2000" to Subject - F

Re: [PATCH] Remove warning: "dubious: x | !y" detected by sparse

2020-01-15 Thread Felipe Cardoso Resende
t;Staging: kpc2000:" > I totally forgot about this guideline for staging. > On Tue, Jan 14, 2020 at 10:25:15PM -0300, Felipe Cardoso Resende wrote: > > The way I chose to remove the warning was to define a macro to > > make it clear if a flag will be enable or not. > >

[PATCH] Remove warning: "dubious: x | !y" detected by sparse

2020-01-14 Thread Felipe Cardoso Resende
The way I chose to remove the warning was to define a macro to make it clear if a flag will be enable or not. Let me know if you would prefer it to be done in a different way. Signed-off-by: Felipe Cardoso Resende --- drivers/staging/kpc2000/kpc2000_i2c.c | 80 +++ 1

[PATCH] drivers: staging: rtlwifi: Start statement on a tabstop

2019-01-26 Thread Felipe Cardoso Resende
Fix the following checkpatch.pl warning: WARNING: Statements should start on a tabstop #208: FILE: pci.h:208: + /*ASPM*/ u8 const_pci_aspm; Signed-off-by: Felipe Cardoso Resende --- drivers/staging/rtlwifi/pci.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion