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
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.
> >
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
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