mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-01 17:26:39 +07: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 |