mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 13:04:03 +08:00
90829adb4a
This semantic patch looks for variables that are initialized with a constant, are never updated, and are only used as parameter of return. Return the constant instead of using a variable. Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Michal Marek <mmarek@suse.cz> |
||
---|---|---|
.. | ||
boolinit.cocci | ||
boolreturn.cocci | ||
cstptr.cocci | ||
doubleinit.cocci | ||
ifaddr.cocci | ||
ifcol.cocci | ||
irqf_oneshot.cocci | ||
noderef.cocci | ||
of_table.cocci | ||
orplus.cocci | ||
returnvar.cocci | ||
semicolon.cocci | ||
warn.cocci |