From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Perches Subject: [PATCH] - [9/15] - remove defconfig ptr comparisons to 0 - fs/nfsd Date: Tue, 13 Nov 2007 18:05:25 -0800 Message-ID: <1195005925.5163.95.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: "J. Bruce Fields" , Neil Brown , Linus Torvalds , nfs@lists.sourceforge.net To: linux-kernel Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43) id 1Is7dP-0003vS-Ar for nfs@lists.sourceforge.net; Tue, 13 Nov 2007 18:05:43 -0800 Received: from dsl022.labridge.com ([206.117.136.22] helo=perches.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1Is7dT-0004FY-Tl for nfs@lists.sourceforge.net; Tue, 13 Nov 2007 18:05:49 -0800 List-Id: "Discussion of NFS under Linux development, interoperability, and testing." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfs-bounces@lists.sourceforge.net Errors-To: nfs-bounces@lists.sourceforge.net Remove defconfig ptr comparison to 0 Remove sparse warning: Using plain integer as NULL pointer Signed-off-by: Joe Perches --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index d019918..07b38cf 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -987,7 +987,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, * flushing the data to disk is handled separately below. */ - if (file->f_op->fsync == 0) {/* COMMIT3 cannot work */ + if (!file->f_op->fsync) {/* COMMIT3 cannot work */ stable = 2; *stablep = 2; /* FILE_SYNC */ } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762921AbXKNCIZ (ORCPT ); Tue, 13 Nov 2007 21:08:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761591AbXKNCF0 (ORCPT ); Tue, 13 Nov 2007 21:05:26 -0500 Received: from DSL022.labridge.com ([206.117.136.22]:4770 "EHLO perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761567AbXKNCFZ (ORCPT ); Tue, 13 Nov 2007 21:05:25 -0500 Subject: [PATCH] - [9/15] - remove defconfig ptr comparisons to 0 - fs/nfsd From: Joe Perches To: linux-kernel Cc: Linus Torvalds , "J. Bruce Fields" , Neil Brown , nfs@lists.sourceforge.net Content-Type: text/plain Date: Tue, 13 Nov 2007 18:05:25 -0800 Message-Id: <1195005925.5163.95.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0-2mdv2008.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Remove defconfig ptr comparison to 0 Remove sparse warning: Using plain integer as NULL pointer Signed-off-by: Joe Perches --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index d019918..07b38cf 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -987,7 +987,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file, * flushing the data to disk is handled separately below. */ - if (file->f_op->fsync == 0) {/* COMMIT3 cannot work */ + if (!file->f_op->fsync) {/* COMMIT3 cannot work */ stable = 2; *stablep = 2; /* FILE_SYNC */ }