mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 06:24:53 +08:00
ba9b6f9f7a
Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> |
||
---|---|---|
.. | ||
ems_pci.c | ||
ems_pcmcia.c | ||
Kconfig | ||
kvaser_pci.c | ||
Makefile | ||
peak_pci.c | ||
peak_pcmcia.c | ||
plx_pci.c | ||
sja1000_isa.c | ||
sja1000_of_platform.c | ||
sja1000_platform.c | ||
sja1000.c | ||
sja1000.h | ||
tscan1.c |