Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756113AbbFPHST (ORCPT ); Tue, 16 Jun 2015 03:18:19 -0400 Received: from mail-db3on0112.outbound.protection.outlook.com ([157.55.234.112]:23869 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752307AbbFPHSL convert rfc822-to-8bit (ORCPT ); Tue, 16 Jun 2015 03:18:11 -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 v2] Staging: lusture: Remove an open coded simple_open() function Thread-Topic: [PATCH v2] Staging: lusture: Remove an open coded simple_open() function Thread-Index: AQHQqASYzNd635FklkK1XKEjXJVGJg== Date: Tue, 16 Jun 2015 07:18:08 +0000 Message-ID: <1434439006-5550-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;DB5PR06MB1109;3:Na8mYTIA0ziocBnq0+4NOtlrNNDAN/gUau2xuJE71TJSdn69slttFgzmPbp8irnnhukaGKc89NquAuRK6eO8LO7VgTUvErsBWv9nQiqkYxFOIyd51t8fYpIm4kdc6sKDAjb1KUyQv2NszIJgJwXXjw==;10:twf+9znx/XZif1WY7XbIR/EVmOdRDZhUbss6XAAHQ3h/SpabokY9svWVxG48AEjN1R04BJfsOiCmBL4DCu7e22cUkR7aMwbQyRGv03yxbqg=;6:aUnMfsinoa3mShWhBZQJ5z2cCvo5i8PoVlDcox/dJg3omOXPyNxYncggzf1gprym x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR06MB1109; 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:DB5PR06MB1109;BCL:0;PCL:0;RULEID:;SRVR:DB5PR06MB1109; x-forefront-prvs: 06098A2863 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(110136002)(5001920100001)(189998001)(2501003)(5002640100001)(229853001)(50226001)(40100003)(33646002)(122556002)(92566002)(36756003)(62966003)(106116001)(2351001)(77156002)(107886002)(5001960100002)(50986999)(87936001)(2656002)(46102003)(102836002)(19580395003)(19580405001)(77096005)(86362001)(66066001)(2900100001)(4001430100001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR06MB1109;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:18:08.0362 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR06MB1109 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1553 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..da82210 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/