Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751605AbbEDTWd (ORCPT ); Mon, 4 May 2015 15:22:33 -0400 Received: from mailrelay117.isp.belgacom.be ([195.238.20.144]:48337 "EHLO mailrelay117.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751078AbbEDTWa (ORCPT ); Mon, 4 May 2015 15:22:30 -0400 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=i+EX5EtM4g4P/CrLY+sx2nOWHsqv9AlVwqc0uudqMuE= c=1 sm=2 a=qTGx0mFmd8UbxUMfXiwA:9 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BqMwDrxUdV/+t0sFtcgwyBL4E/sjQLBQGBAphCBAKBMj0QAQEBAQEBAYEKQQWECC8jgRo3iC8BxgUshheJQmUdhBcFnF+MR4lXI2BmAXGBPjwxgQKBQwEBAQ From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Jens Axboe , Fabian Frederick Subject: [PATCH 1/1 linux-next] block: loop: use IS_ERR() to check blk_mq_init_queue() return Date: Mon, 4 May 2015 21:22:19 +0200 Message-Id: <1430767339-10953-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 28 blk_mq_init_queue() never returns NULL. There's no need for IS_ERR_OR_NULL() Signed-off-by: Fabian Frederick --- drivers/block/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/loop.c b/drivers/block/loop.c index ae3fcb4..3fb23e9 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -1559,7 +1559,7 @@ static int loop_add(struct loop_device **l, int i) goto out_free_idr; lo->lo_queue = blk_mq_init_queue(&lo->tag_set); - if (IS_ERR_OR_NULL(lo->lo_queue)) { + if (IS_ERR(lo->lo_queue)) { err = PTR_ERR(lo->lo_queue); goto out_cleanup_tags; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/