Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754600AbbBZW4p (ORCPT ); Thu, 26 Feb 2015 17:56:45 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:54591 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754510AbbBZW4o (ORCPT ); Thu, 26 Feb 2015 17:56:44 -0500 From: Luis Henriques To: Jens Axboe Cc: linux-kernel@vger.kernel.org Subject: [PATCH] block: ioprio: drop useless free_uid label Date: Thu, 26 Feb 2015 22:57:33 +0000 Message-Id: <1424991453-3221-1-git-send-email-luis.henriques@canonical.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 880 Lines: 31 This goto statement can simply be replaced by a break, and the label can be dropped. Signed-off-by: Luis Henriques --- block/ioprio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/ioprio.c b/block/ioprio.c index 42c680a17be4..cad43c832cc3 100644 --- a/block/ioprio.c +++ b/block/ioprio.c @@ -127,9 +127,8 @@ SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio) continue; ret = set_task_ioprio(p, ioprio); if (ret) - goto free_uid; + break; } while_each_thread(g, p); -free_uid: if (who) free_uid(user); break; -- 2.1.4 -- 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/