From patchwork Tue Jan 24 20:48:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 9535875 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 171ED6042D for ; Tue, 24 Jan 2017 20:50:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A01126C2F for ; Tue, 24 Jan 2017 20:50:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2C5326E56; Tue, 24 Jan 2017 20:50:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2CF726C2F for ; Tue, 24 Jan 2017 20:50:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750778AbdAXUt7 (ORCPT ); Tue, 24 Jan 2017 15:49:59 -0500 Received: from mailrelay110.isp.belgacom.be ([195.238.20.137]:20221 "EHLO mailrelay110.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783AbdAXUt7 (ORCPT ); Tue, 24 Jan 2017 15:49:59 -0500 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2AYAwDXvIdY/+M5QFdeHQEFAQsBgmpKA?= =?us-ascii?q?QEBAQEfQYEojVtykT4BknWCD4INhhwEAgKCIUAYAQIBAQEBAQEBYiiEagYnLyM?= =?us-ascii?q?QGTg5HgYTiQ0RsAs6hBCGTQExhkuPHQWbTZFfDYFfjw9Iki8fOIErGhiGdD01h?= =?us-ascii?q?3kBAQE?= X-IPAS-Result: =?us-ascii?q?A2AYAwDXvIdY/+M5QFdeHQEFAQsBgmpKAQEBAQEfQYEojVt?= =?us-ascii?q?ykT4BknWCD4INhhwEAgKCIUAYAQIBAQEBAQEBYiiEagYnLyMQGTg5HgYTiQ0Rs?= =?us-ascii?q?As6hBCGTQExhkuPHQWbTZFfDYFfjw9Iki8fOIErGhiGdD01h3kBAQE?= Received: from 227.57-64-87.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([87.64.57.227]) by relay.skynet.be with ESMTP; 24 Jan 2017 21:48:48 +0100 From: Fabian Frederick To: Jan Kara Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, fabf@skynet.be Subject: [PATCH 3/3 linux-next] udf: remove else after return in udf_ioctl() Date: Tue, 24 Jan 2017 21:48:36 +0100 Message-Id: <20170124204836.22323-3-fabf@skynet.be> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170124204836.22323-1-fabf@skynet.be> References: <20170124204836.22323-1-fabf@skynet.be> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP else after return is not needed. Signed-off-by: Fabian Frederick --- fs/udf/file.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/udf/file.c b/fs/udf/file.c index 00931fa..a1fec1b 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c @@ -194,8 +194,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) if (copy_to_user((char __user *)arg, UDF_SB(inode->i_sb)->s_volume_ident, 32)) return -EFAULT; - else - return 0; + return 0; case UDF_RELOCATE_BLOCKS: if (!capable(CAP_SYS_ADMIN)) return -EPERM;