Hi!
> When I use <kernel_path>/scripts/checkpatch.pl to check the patch, it
> output like:
> #20: FILE: testcases/network/can/filter-tests/tst-filter.c:84:
> +             return (CAN_EFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG);

This misses the important part which says:

ERROR: return is not a function, parentheses are not required

so the script is telling you to do:

                reutrn CAN_EFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG;

instead ;).

-- 
Cyril Hrubis
chru...@suse.cz

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to