lkml.org 
[lkml]   [2015]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] block: ioprio: drop useless free_uid label
Date
This goto statement can simply be replaced by a break, and the label can
be dropped.

Signed-off-by: Luis Henriques <luis.henriques@canonical.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


\
 
 \ /
  Last update: 2015-02-27 00:21    [W:0.022 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site