lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1424991453-3221-1-git-send-email-luis.henriques@canonical.com>
Date:	Thu, 26 Feb 2015 22:57:33 +0000
From:	Luis Henriques <luis.henriques@...onical.com>
To:	Jens Axboe <axboe@...nel.dk>
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH] block: ioprio: drop useless free_uid label

This goto statement can simply be replaced by a break, and the label can
be dropped.

Signed-off-by: Luis Henriques <luis.henriques@...onical.com>
---
 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ