From patchwork Thu Sep 2 01:37:32 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 148061 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o821bbxG005002 for ; Thu, 2 Sep 2010 01:42:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755056Ab0IBBih (ORCPT ); Wed, 1 Sep 2010 21:38:37 -0400 Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.121]:62210 "EHLO cdptpa-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755017Ab0IBBih (ORCPT ); Wed, 1 Sep 2010 21:38:37 -0400 X-Authority-Analysis: v=1.1 cv=CjIrh0z8wN5M7DYqe8Bxtxzw6M45hYlnllSU75Z2ugA= c=1 sm=0 a=tz-n2ijozE0A:10 a=ld/erqUjW76FpBUqCqkKeA==:17 a=80ZaaiSNkFtoXL8QL6AA:9 a=VqR6s1dzwvAqRH9TV-SuFgpdIRgA:4 a=ld/erqUjW76FpBUqCqkKeA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 71.70.153.3 Received: from [71.70.153.3] ([71.70.153.3:45519] helo=mail.poochiereds.net) by cdptpa-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id F1/E9-23480-FDFFE7C4; Thu, 02 Sep 2010 01:37:36 +0000 Received: by mail.poochiereds.net (Postfix, from userid 4447) id 90DC758164; Wed, 1 Sep 2010 21:37:35 -0400 (EDT) From: Jeff Layton To: smfrench@gmail.com Cc: shirishpargaonkar@gmail.com, linux-cifs@vger.kernel.org Subject: [PATCH 3/6] Revert "[CIFS] Eliminate unused variable warning" Date: Wed, 1 Sep 2010 21:37:32 -0400 Message-Id: <1283391455-6848-4-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.2.2 In-Reply-To: <1283391455-6848-1-git-send-email-jlayton@redhat.com> References: <1283391455-6848-1-git-send-email-jlayton@redhat.com> 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 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Sep 2010 01:42:34 +0000 (UTC) diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index 795095f..4788e16 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -620,6 +620,7 @@ CIFS_SessSetup(unsigned int xid, struct cifsSesInfo *ses, struct key *spnego_key = NULL; __le32 phase = NtLmNegotiate; /* NTLMSSP, if needed, is multistage */ bool first_time; + char *ntlmsspblob; if (ses == NULL) return -EINVAL; @@ -867,8 +868,6 @@ ssetup_ntlmssp_authenticate: iov[1].iov_base = &pSMB->req.SecurityBlob[0]; } else if (phase == NtLmAuthenticate) { int blob_len; - char *ntlmsspblob; - ntlmsspblob = kmalloc(5 * sizeof(struct _AUTHENTICATE_MESSAGE), GFP_KERNEL);