From patchwork Mon Mar 21 19:35:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 648781 X-Patchwork-Delegate: Trond.Myklebust@netapp.com 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 p2LJa0P4017563 for ; Mon, 21 Mar 2011 19:36:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754112Ab1CUTf6 (ORCPT ); Mon, 21 Mar 2011 15:35:58 -0400 Received: from swampdragon.chaosbits.net ([90.184.90.115]:18176 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754069Ab1CUTf6 (ORCPT ); Mon, 21 Mar 2011 15:35:58 -0400 Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id 4A4D894040; Mon, 21 Mar 2011 20:35:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id 4874B9403E; Mon, 21 Mar 2011 20:35:49 +0100 (CET) Date: Mon, 21 Mar 2011 20:35:49 +0100 (CET) From: Jesper Juhl To: linux-nfs@vger.kernel.org cc: Trond Myklebust , Milton Miller , Chuck Lever , linux-kernel@vger.kernel.org, Neil Brown , bfields@fieldses.org Subject: [PATCH][resend] Remove pointless memset in nfsacl_encode() Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 21 Mar 2011 19:36:00 +0000 (UTC) diff --git a/fs/nfs_common/nfsacl.c b/fs/nfs_common/nfsacl.c index 84c27d6..ec0f277 100644 --- a/fs/nfs_common/nfsacl.c +++ b/fs/nfs_common/nfsacl.c @@ -117,7 +117,6 @@ int nfsacl_encode(struct xdr_buf *buf, unsigned int base, struct inode *inode, * invoked in contexts where a memory allocation failure is * fatal. Fortunately this fake ACL is small enough to * construct on the stack. */ - memset(acl2, 0, sizeof(acl2)); posix_acl_init(acl2, 4); /* Insert entries in canonical order: other orders seem