From patchwork Mon Jun 21 01:23:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Justin P. Mattock" X-Patchwork-Id: 107115 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5L1NURe002428 for ; Mon, 21 Jun 2010 01:23:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757231Ab0FUBX2 (ORCPT ); Sun, 20 Jun 2010 21:23:28 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:45493 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756754Ab0FUBX2 (ORCPT ); Sun, 20 Jun 2010 21:23:28 -0400 Received: by pxi12 with SMTP id 12so1157095pxi.19 for ; Sun, 20 Jun 2010 18:23:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=DscUEpuvmj8znJF8lBFTttd6ct59lZCGU/9Rhe7fUtg=; b=kIiLc/tDcxASl78Hu1VIYMWloIRXfbrf+uFp0RVzNZ7BSJWAmXijsYWDbhy42KQkgM VdJBx8AxohvajLWDcTea5BPdQ7s6ktoxpAha/bDm7VBA9qRWl6H7xfHT/uELeQrcYv/U JoA7/thoTYBgYw5MsmxOa3wdL7OlHNooQ61hg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=FlaRSBK1EvHaiOyUB3onJpXdmKBaldXL2g59ME3TLNYn072jiZ8p3nl3FJofPV7Fzx cI6Z5pYDfsxaAVlZ5KGIp4W/GwOlsNd3e2jeuRWqV/dh6jjHGFwvUhFlLUvMuxZ1KzIJ 3HCk4+iw/VzXzYPFkSxDPJyEWhBaMeYaBdjZU= Received: by 10.142.10.27 with SMTP id 27mr2882119wfj.265.1277083407367; Sun, 20 Jun 2010 18:23:27 -0700 (PDT) Received: from localhost.localdomain ([76.91.45.220]) by mx.google.com with ESMTPS id b6sm23709424wam.21.2010.06.20.18.23.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 20 Jun 2010 18:23:26 -0700 (PDT) From: "Justin P. Mattock" To: linux-cifs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, jlayton@samba.org, linux-kernel@vger.kernel.org, "Justin P. Mattock" Subject: [PATCH 3/6 v3]cifs Fix warnings variables set but not used Date: Sun, 20 Jun 2010 18:23:21 -0700 Message-Id: <1277083401-6459-1-git-send-email-justinmattock@gmail.com> X-Mailer: git-send-email 1.7.1.rc1.21.gf3bd6 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 21 Jun 2010 01:23:30 +0000 (UTC) diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index c65c341..4653aaa 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -4852,7 +4852,6 @@ CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size, __u16 fid, __u32 pid_of_opener, bool SetAllocation) { struct smb_com_transaction2_sfi_req *pSMB = NULL; - char *data_offset; struct file_end_of_file_info *parm_data; int rc = 0; __u16 params, param_offset, offset, byte_count, count; @@ -4876,8 +4875,6 @@ CIFSSMBSetFileSize(const int xid, struct cifsTconInfo *tcon, __u64 size, param_offset = offsetof(struct smb_com_transaction2_sfi_req, Fid) - 4; offset = param_offset + params; - data_offset = (char *) (&pSMB->hdr.Protocol) + offset; - count = sizeof(struct file_end_of_file_info); pSMB->MaxParameterCount = cpu_to_le16(2); /* BB find exact max SMB PDU from sess structure BB */ diff --git a/fs/cifs/file.c b/fs/cifs/file.c index 75541af..661f868 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -1311,8 +1311,6 @@ static int cifs_partialpagewrite(struct page *page, unsigned from, unsigned to) char *write_data; int rc = -EFAULT; int bytes_written = 0; - struct cifs_sb_info *cifs_sb; - struct cifsTconInfo *pTcon; struct inode *inode; struct cifsFileInfo *open_file; @@ -1320,8 +1318,6 @@ static int cifs_partialpagewrite(struct page *page, unsigned from, unsigned to) return -EFAULT; inode = page->mapping->host; - cifs_sb = CIFS_SB(inode->i_sb); - pTcon = cifs_sb->tcon; offset += (loff_t)from; write_data = kmap(page);