mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 15:34:48 +08:00
4a4bfdcd29
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 |