From patchwork Wed Jun 22 12:03:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 101441 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DF272B700A for ; Wed, 22 Jun 2011 22:17:55 +1000 (EST) Received: from localhost ([::1]:56868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZMNS-00027Y-1J for incoming@patchwork.ozlabs.org; Wed, 22 Jun 2011 08:17:50 -0400 Received: from eggs.gnu.org ([140.186.70.92]:32869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZMAB-0007mf-8W for qemu-devel@nongnu.org; Wed, 22 Jun 2011 08:04:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZMA7-0005V3-WC for qemu-devel@nongnu.org; Wed, 22 Jun 2011 08:04:06 -0400 Received: from oxygen.pond.sub.org ([78.46.104.156]:50622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZMA7-0005UK-8U for qemu-devel@nongnu.org; Wed, 22 Jun 2011 08:04:03 -0400 Received: from oxygen-old.pond.sub.org (unknown [IPv6:2a01:4f8:130:9021::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "oxygen.pond.sub.org", Issuer "CAcert Class 3 Root" (verified OK)) by oxygen.pond.sub.org (Postfix) with ESMTPS id CAA7EA246E; Wed, 22 Jun 2011 14:04:01 +0200 (CEST) Received: from blackfin.pond.sub.org (p5B32D44C.dip.t-dialin.net [91.50.212.76]) by oxygen-old.pond.sub.org (Postfix) with ESMTPA id 9429D277179; Wed, 22 Jun 2011 14:03:58 +0200 (CEST) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 0148C86; Wed, 22 Jun 2011 14:03:57 +0200 (CEST) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Wed, 22 Jun 2011 14:03:53 +0200 Message-Id: <1308744237-3468-2-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1308744237-3468-1-git-send-email-armbru@redhat.com> References: <1308744237-3468-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 78.46.104.156 Cc: stefanha@gmail.com Subject: [Qemu-devel] [PATCH trivial 1/5] sheepdog: qemu_bh_new() can't return null pointer, drop check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Markus Armbruster --- block/sheepdog.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 0392ca8..2180299 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -449,13 +449,7 @@ static int sd_schedule_bh(QEMUBHFunc *cb, SheepdogAIOCB *acb) } acb->bh = qemu_bh_new(cb, acb); - if (!acb->bh) { - error_report("oom: %d %d\n", acb->aiocb_type, acb->aiocb_type); - return -EIO; - } - qemu_bh_schedule(acb->bh); - return 0; }