Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752775AbdIXRoE (ORCPT ); Sun, 24 Sep 2017 13:44:04 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37067 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752515AbdIXRoD (ORCPT ); Sun, 24 Sep 2017 13:44:03 -0400 X-Google-Smtp-Source: AOwi7QA7yIrzqN9golhwXH6XEdn7skNcnMbQQT9WuwwZVNq3RfJW/DfvXZeJ2Wc2UdRsYC+wY7qz+Q== Date: Sun, 24 Sep 2017 18:43:59 +0100 From: Christos Gkekas To: Petr Vandrovec , Ingo Molnar , linux-kernel@vger.kernel.org Cc: Christos Gkekas Subject: [PATCH RESEND] ncpfs: ioctl: Delete unnecessary len variables Message-ID: <20170924174359.GA4245@inspiron> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1685 Lines: 50 Variables oldnamelen, oldprivatelen and oldlen are set but are never used, thus they need to be cleaned up. Signed-off-by: Christos Gkekas --- fs/ncpfs/ioctl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/fs/ncpfs/ioctl.c b/fs/ncpfs/ioctl.c index 12550c2..85c6c60 100644 --- a/fs/ncpfs/ioctl.c +++ b/fs/ncpfs/ioctl.c @@ -642,9 +642,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg struct ncp_objectname_ioctl user; void* newname; void* oldname; - size_t oldnamelen; void* oldprivate; - size_t oldprivatelen; #ifdef CONFIG_COMPAT if (cmd == NCP_IOC_SETOBJECTNAME_32) { @@ -671,9 +669,7 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg } down_write(&server->auth_rwsem); oldname = server->auth.object_name; - oldnamelen = server->auth.object_name_len; oldprivate = server->priv.data; - oldprivatelen = server->priv.len; server->auth.auth_type = user.auth_type; server->auth.object_name_len = user.object_name_len; server->auth.object_name = newname; @@ -742,7 +738,6 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg struct ncp_privatedata_ioctl user; void* new; void* old; - size_t oldlen; #ifdef CONFIG_COMPAT if (cmd == NCP_IOC_SETPRIVATEDATA_32) { @@ -767,7 +762,6 @@ static long __ncp_ioctl(struct inode *inode, unsigned int cmd, unsigned long arg } down_write(&server->auth_rwsem); old = server->priv.data; - oldlen = server->priv.len; server->priv.len = user.len; server->priv.data = new; up_write(&server->auth_rwsem); -- 2.7.4