]> git.baikalelectronics.ru Git - kernel.git/commit
staging: fpgaboot: fix coccinelle warnings
authorFengguang Wu <fengguang.wu@intel.com>
Fri, 14 Feb 2014 17:26:07 +0000 (09:26 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2014 17:26:07 +0000 (09:26 -0800)
commit1ab114813bf727a03930c09681c96e52a795a73d
tree9301e9aa8ccda06eed2952873ae7ed8b9b2867ac
parenta3be10acb5d167094955066d43c780b82c6808b2
staging: fpgaboot: fix coccinelle warnings

drivers/staging/gs_fpgaboot/gs_fpgaboot.c:305:1-3: WARNING: PTR_RET can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: coccinelle/api/ptr_ret.cocci

CC: Insop Song <insop.song@gainspeed.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gs_fpgaboot/gs_fpgaboot.c