From patchwork Thu Mar 28 10:50:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1067990 X-Patchwork-Delegate: petr.vorel@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44VM8c6rBWz9sPb for ; Thu, 28 Mar 2019 21:50:22 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id A2529294AD0 for ; Thu, 28 Mar 2019 11:50:19 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) by picard.linux.it (Postfix) with ESMTP id 84FA4294AB5 for ; Thu, 28 Mar 2019 11:50:17 +0100 (CET) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id 70A811000DB3 for ; Thu, 28 Mar 2019 11:50:14 +0100 (CET) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4FC54AB48; Thu, 28 Mar 2019 10:50:15 +0000 (UTC) From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 28 Mar 2019 11:50:06 +0100 Message-Id: <20190328105006.17337-1-pvorel@suse.cz> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=-0.0 required=7.0 tests=SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH 1/1] Remove break after return X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Reported-by: Xiao Yang Signed-off-by: Petr Vorel Reviewed-by: Enji Cooper Reviewed-by: Xiao Yang --- testcases/kernel/syscalls/select/select_var.h | 1 - testcases/kernel/syscalls/sigpending/sigpending02.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/testcases/kernel/syscalls/select/select_var.h b/testcases/kernel/syscalls/select/select_var.h index b19a1d1bf..29ebbc5ee 100644 --- a/testcases/kernel/syscalls/select/select_var.h +++ b/testcases/kernel/syscalls/select/select_var.h @@ -20,7 +20,6 @@ static int do_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *except switch (tst_variant) { case 0: return select(nfds, readfds, writefds, exceptfds, timeout); - break; case 1: { #ifdef __LP64__ return tst_syscall(__NR_select, nfds, readfds, writefds, exceptfds, timeout); diff --git a/testcases/kernel/syscalls/sigpending/sigpending02.c b/testcases/kernel/syscalls/sigpending/sigpending02.c index ce0d2ff79..d75807d77 100644 --- a/testcases/kernel/syscalls/sigpending/sigpending02.c +++ b/testcases/kernel/syscalls/sigpending/sigpending02.c @@ -37,13 +37,10 @@ static int tested_sigpending(sigset_t *sigset) switch (tst_variant) { case 0: return sigpending(sigset); - break; case 1: return tst_syscall(__NR_sigpending, sigset); - break; case 2: return tst_syscall(__NR_rt_sigpending, sigset, SIGSETSIZE); - break; } return -1; }