Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754392AbbFPHDY (ORCPT ); Tue, 16 Jun 2015 03:03:24 -0400 Received: from mail-db3on0123.outbound.protection.outlook.com ([157.55.234.123]:33695 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753738AbbFPHDK convert rfc822-to-8bit (ORCPT ); Tue, 16 Jun 2015 03:03:10 -0400 From: "Abdul, Hussain (H.)" To: "gregkh@linuxfoundation.org" CC: "oleg.drokin@intel.com" , "andreas.dilger@intel.com" , "HPDD-discuss@lists.01.org" , "devel@driverdev.osuosl.org" , "linux-kernel@vger.kernel.org" , "Ravindran, Madhusudhanan (M.)" , "Dighe, Niranjan (N.)" Subject: [PATCH] Staging: lusture: Remove an open coded simple_open() function Thread-Topic: [PATCH] Staging: lusture: Remove an open coded simple_open() function Thread-Index: AQHQqAJ+pKktxGjzxE6yWSL7PstmZg== Date: Tue, 16 Jun 2015 07:03:06 +0000 Message-ID: <1434438105-4648-1-git-send-email-habdul@visteon.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.9.1 authentication-results: linuxfoundation.org; dkim=none (message not signed) header.d=none; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [74.112.167.117] x-microsoft-exchange-diagnostics: 1;DB5PR06MB1110;3:ya57PU8qHwBosJVOwSlOrEAm6HIubSvpNk+apbi//rbyC7sN8rq0CKbtga+GzNskhCUg3nLtyikzUV7gRbTTtmHujTPBGVJqeXuH7osfSsNADwBRNn7EZu6d34I70ZOEJpSvGwIp4zKvvIQ2Gdn0ug==;10:roXHGIFyO+RKCJAlKxaD9gxLvB8ZMlrEYraSrs587j4gUXdv2aF4u4dGvVOsqJOhPB4DBamkGUh4X3QPHdHrWGD0JnAumObEcsjcX1tXwjQ=;6:xim+roq1plFPU19h+RP43SZPcHhsXs/6BaNwi/fKodVhVxuEJmXgf/iwr6fM/Fi+ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR06MB1110; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(520003)(5005006)(3002001);SRVR:DB5PR06MB1110;BCL:0;PCL:0;RULEID:;SRVR:DB5PR06MB1110; x-forefront-prvs: 06098A2863 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(102836002)(77096005)(2900100001)(50226001)(36756003)(106116001)(50986999)(40100003)(189998001)(110136002)(66066001)(122556002)(5002640100001)(62966003)(77156002)(5001960100002)(92566002)(107886002)(2656002)(2351001)(87936001)(229853001)(33646002)(2501003)(46102003)(86362001)(19580405001)(19580395003)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR06MB1110;H:DB5PR06MB1112.eurprd06.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2015 07:03:06.6072 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR06MB1110 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1543 Lines: 44 From: Abdul Hussain This patch removes an open coded simple_open() function and replace file operations references to the function with simple_open() instead Signed-off-by: Abdul Hussain --- drivers/staging/lustre/lustre/fld/lproc_fld.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/staging/lustre/lustre/fld/lproc_fld.c b/drivers/staging/lustre/lustre/fld/lproc_fld.c index b35ff28..d19b724 100644 --- a/drivers/staging/lustre/lustre/fld/lproc_fld.c +++ b/drivers/staging/lustre/lustre/fld/lproc_fld.c @@ -143,13 +143,6 @@ fld_debugfs_cache_flush_write(struct file *file, const char __user *buffer, } static int -fld_debugfs_cache_flush_open(struct inode *inode, struct file *file) -{ - file->private_data = inode->i_private; - return 0; -} - -static int fld_debugfs_cache_flush_release(struct inode *inode, struct file *file) { file->private_data = NULL; @@ -158,7 +151,7 @@ fld_debugfs_cache_flush_release(struct inode *inode, struct file *file) static struct file_operations fld_debugfs_cache_flush_fops = { .owner = THIS_MODULE, - .open = fld_debugfs_cache_flush_open, + .open = simple_open, .write = fld_debugfs_cache_flush_write, .release = fld_debugfs_cache_flush_release, }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/