From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753444AbbEKKr3 (ORCPT ); Mon, 11 May 2015 06:47:29 -0400 Received: from mail-pd0-f170.google.com ([209.85.192.170]:35490 "EHLO mail-pd0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753304AbbEKKrU (ORCPT ); Mon, 11 May 2015 06:47:20 -0400 From: Sudip Mukherjee To: Oleg Drokin , Andreas Dilger , Greg Kroah-Hartman Cc: HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Sudip Mukherjee Subject: [PATCH] staging: lustre: remove unused variable Date: Mon, 11 May 2015 16:17:10 +0530 Message-Id: <1431341230-29639-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org there variables were not used anywhere and was showing as build warning. Signed-off-by: Sudip Mukherjee --- drivers/staging/lustre/lustre/lov/lov_request.c | 4 +--- drivers/staging/lustre/lustre/obdclass/acl.c | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/lov/lov_request.c b/drivers/staging/lustre/lustre/lov/lov_request.c index f6e1314..d24ba8e 100644 --- a/drivers/staging/lustre/lustre/lov/lov_request.c +++ b/drivers/staging/lustre/lustre/lov/lov_request.c @@ -74,10 +74,8 @@ void lov_finish_set(struct lov_request_set *set) kfree(req); } - if (set->set_pga) { - int len = set->set_oabufs * sizeof(*set->set_pga); + if (set->set_pga) OBD_FREE_LARGE(set->set_pga, len); - } if (set->set_lockh) lov_llh_put(set->set_lockh); diff --git a/drivers/staging/lustre/lustre/obdclass/acl.c b/drivers/staging/lustre/lustre/obdclass/acl.c index 194c48a..bc3fc47 100644 --- a/drivers/staging/lustre/lustre/obdclass/acl.c +++ b/drivers/staging/lustre/lustre/obdclass/acl.c @@ -120,7 +120,6 @@ static int lustre_ext_acl_xattr_reduce_space(ext_acl_xattr_header **header, { int ext_count = le32_to_cpu((*header)->a_count); int ext_size = CFS_ACL_XATTR_SIZE(ext_count, ext_acl_xattr); - int old_size = CFS_ACL_XATTR_SIZE(old_count, ext_acl_xattr); ext_acl_xattr_header *new; if (unlikely(old_count <= ext_count)) -- 1.8.1.2