summaryrefslogtreecommitdiff
path: root/block/blk-map.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-08-14 02:58:33 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-14 17:00:56 -0700
commit137bc99ff30aa1d9bf556ee9c8ba788a8ec0f595 (patch)
tree508a75b1e786e074c98d6c80eabc68e7e3f656bd /block/blk-map.c
parentf37c54b6a6c56489221d42ff27305e4f8098e34b (diff)
downloadlinux-3.10-137bc99ff30aa1d9bf556ee9c8ba788a8ec0f595.tar.gz
linux-3.10-137bc99ff30aa1d9bf556ee9c8ba788a8ec0f595.tar.bz2
linux-3.10-137bc99ff30aa1d9bf556ee9c8ba788a8ec0f595.zip
drivers/net/ethernet/freescale/fs_enet: fix error return code
Convert a 0 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> @@ identifier ret; expression e,e1,e2,e3,e4,x; @@ ( if (\(ret != 0\|ret < 0\) || ...) { ... return ...; } | ret = 0 ) ... when != ret = e1 *x = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\|ioremap\|ioremap_nocache\|devm_ioremap\|devm_ioremap_nocache\)(...); ... when != x = e2 when != ret = e3 *if (x == NULL || ...) { ... when != ret = e4 * return ret; } // </smpl> Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block/blk-map.c')
0 files changed, 0 insertions, 0 deletions