Fix smatch warning:
drivers/block/loop.c:799 loop_attr_backing_file_show() warn: passing zero to
'PTR_ERR'
file_path() never returns 0, so use IS_ERR instead of
IS_ERR_OR_NULL to fix this.
Signed-off-by: YueHaibing
---
drivers/block/loop.c | 2 +-
1 file changed, 1 insertion(+), 1
On Wed, Jun 24, 2020 at 04:48:42PM +0800, Ding Xiang wrote:
> Fix a static code checker warning:
> drivers/block/loop.c:798 loop_attr_backing_file_show()
> warn: passing zero to 'PTR_ERR'
Better fix the root cause of that the problem - bullshit checker,
that is...
Fix a static code checker warning:
drivers/block/loop.c:798 loop_attr_backing_file_show()
warn: passing zero to 'PTR_ERR'
Signed-off-by: Ding Xiang
---
drivers/block/loop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
3 matches
Mail list logo