From patchwork Tue Oct 21 16:02:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 39161 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 01CF52039B for ; Tue, 21 Oct 2014 16:02:52 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf1023725lam.4 for ; Tue, 21 Oct 2014 09:02:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=jMUt1QAaOCU5H6+T4ugBUIGb/cGr8rNGzOqiqZgOJ+o=; b=Dy1f7/eoX6z2Acmnu1BUKaeUl949NZxWNn64h1fZokzZ6Y7snOBXmNEbxKHGH8g9q+ d+XRqY7/WIO1W5ZnmLWDAXUQMEJWLdEuRUkCPn/1AI6/Mrr+jbJuFR7moWWDWytJrwGC Rh7p4dFixBMx+gnz0XhBijYo/g0RneLJQSivOQoh0RuDTEZwzowqwNVZFIi6cPEg7pv1 dK+/fNcO/x8a0JjV3B/X7hWJBWKHDwtAhcIIg96v/gc1Jw6xYMmETwD/a2p/0/r9aZDw 2hW9N1SivAWj4g72a0behLWjyAEgBRVQOwJIerSzW7wQs9Aymxcbvosx/SACQnzXsnvA VB5Q== X-Gm-Message-State: ALoCoQm9b8uLmXAWv3BNdHs2yBSar4f7mfP39IhYpFcLckE94qBxAJE6UtFKIS++i7LVS5PVdGk+ X-Received: by 10.112.55.10 with SMTP id n10mr581140lbp.14.1413907371790; Tue, 21 Oct 2014 09:02:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.227 with SMTP id i3ls67414lae.28.gmail; Tue, 21 Oct 2014 09:02:51 -0700 (PDT) X-Received: by 10.112.221.197 with SMTP id qg5mr35464646lbc.32.1413907371650; Tue, 21 Oct 2014 09:02:51 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id jw6si19599695lbc.101.2014.10.21.09.02.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 21 Oct 2014 09:02:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id hs14so1342467lab.31 for ; Tue, 21 Oct 2014 09:02:50 -0700 (PDT) X-Received: by 10.152.87.98 with SMTP id w2mr35291047laz.27.1413907370410; Tue, 21 Oct 2014 09:02:50 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp529168lbz; Tue, 21 Oct 2014 09:02:49 -0700 (PDT) X-Received: by 10.224.152.5 with SMTP id e5mr36264329qaw.48.1413907369197; Tue, 21 Oct 2014 09:02:49 -0700 (PDT) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id h14si18269355qaq.3.2014.10.21.09.02.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 21 Oct 2014 09:02:48 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgbtT-0003ON-B5; Tue, 21 Oct 2014 16:02:43 +0000 Received: from mail-qa0-f48.google.com ([209.85.216.48]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1XgbtN-0003NV-I4 for lng-odp@lists.linaro.org; Tue, 21 Oct 2014 16:02:37 +0000 Received: by mail-qa0-f48.google.com with SMTP id dc16so1047483qab.21 for ; Tue, 21 Oct 2014 09:02:32 -0700 (PDT) X-Received: by 10.224.103.136 with SMTP id k8mr46797733qao.14.1413907352235; Tue, 21 Oct 2014 09:02:32 -0700 (PDT) Received: from fedora1.holmesfamily.ws ([98.221.136.245]) by mx.google.com with ESMTPSA id w6sm11022465qas.26.2014.10.21.09.02.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Oct 2014 09:02:31 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Tue, 21 Oct 2014 12:02:16 -0400 Message-Id: <1413907336-30415-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] odp_packet_io.c: fix unreachable code X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: mike.holmes@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The code after the break cannot be executed. If the entry is not free, free it. Signed-off-by: Mike Holmes --- platform/linux-generic/odp_packet_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 0c30f0f..fb9fe2d 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -228,8 +228,8 @@ int odp_pktio_close(odp_pktio_t id) break; default: break; - res |= free_pktio_entry(id); } + res |= free_pktio_entry(id); } unlock_entry(entry);