Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754597AbbFSIy1 (ORCPT ); Fri, 19 Jun 2015 04:54:27 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:45640 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754124AbbFSIyS (ORCPT ); Fri, 19 Jun 2015 04:54:18 -0400 X-AuditID: cbfee68e-f79c56d000006efb-11-5583d8b882ec From: Maninder Singh To: m@bues.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: pankaj.m@samsung.com, Maninder Singh Subject: [PATCH 1/1] ssb: remove unncessary out label Date: Fri, 19 Jun 2015 14:23:45 +0530 Message-id: <1434704025-20448-1-git-send-email-maninder1.s@samsung.com> X-Mailer: git-send-email 2.1.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsWyRsSkVnfnjeZQgwsHWCwu75rDZrFq7hNW i8Pz21gsji0Qs7j3ZiuTA6vH7OOP2Dz6tqxi9Pi8SS6AOYrLJiU1J7MstUjfLoErY9/75ewF XewVN1pmMDcwvmbtYuTkkBAwkXgx7zcjhC0mceHeerYuRi4OIYGljBK7nj1jgSlaPKWNGSKx iFHiZtMcJghnEpNE14OFzCBVbAJ6Eqt27QHrEBFwllhy8gFQEQcHs4CTxPSveiCmsICpxJkt 3iAVLAKqEnf3TWECsXkF3CXWntrEDLFLTuL88Z9guyQE7rNJPH3yjAmiQUDi2+RDLCBzJARk JTYdgKqXlDi44gbLBEbBBYwMqxhFUwuSC4qT0ouM9IoTc4tL89L1kvNzNzECQ/H0v2d9Oxhv HrA+xCjAwajEw+txoDlUiDWxrLgy9xCjKdCGicxSosn5wIDPK4k3NDYzsjA1MTU2Mrc0UxLn TZD6GSwkkJ5YkpqdmlqQWhRfVJqTWnyIkYmDU6qBcen9j83Nk0UEmY6mxR+9eOfLy5LHN056 sclzXO+MU1kbLCPGvDQyek5WgPK5Ow6ydYvWtT9re9yhqRSiu7T3+W2D08VL5nZxOfp+73uw RVhA/1zJq8RHbUarZ110SbOQ7J+aZqIa0nvnopHY9cxaRv5Alo0iTtYmm/rTjiTW3/lr9PCT FY+LEktxRqKhFnNRcSIAfeDKkEACAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsVy+t9jAd0dN5pDDX5dsrK4vGsOm8WquU9Y LQ7Pb2OxOLZAzOLem61MDqwes48/YvPo27KK0ePzJrkA5qgGRpuM1MSU1CKF1Lzk/JTMvHRb Je/geOd4UzMDQ11DSwtzJYW8xNxUWyUXnwBdt8wcoJVKCmWJOaVAoYDE4mIlfTtME0JD3HQt YBojdH1DguB6jAzQQMIaxox975ezF3SxV9xomcHcwPiatYuRk0NCwERi8ZQ2ZghbTOLCvfVs XYxcHEICixglbjbNYYJwJjFJdD1YCFbFJqAnsWrXHhYQW0TAWWLJyQdARRwczAJOEtO/6oGY wgKmEme2eINUsAioStzdN4UJxOYVcJdYe2oT1C45ifPHfzJPYORewMiwilE0tSC5oDgpPddQ rzgxt7g0L10vOT93EyM40J9J7WBc2WBxiFGAg1GJh3fBoeZQIdbEsuLK3EOMEhzMSiK8jDuB QrwpiZVVqUX58UWlOanFhxhNgbZPZJYSTc4HRmFeSbyhsYm5qbGppYmFiZmlkjjvyXyfUCGB 9MSS1OzU1ILUIpg+Jg5OqQbGGvXGBzyNEZvWPGWSfebfenHChc9O3+7t+lOk0dPf7NW7Y1rx 4llsxRJcbIaLtK9sX/lYe++Uw/Pv8NWuEVg10+aSx8b1jVsuzBby6mDydzOorYooXva610dl YUXH1twbn/wKLTZotZQHKR0+NWnRsye1H/I2sPEbh7NUxLaeSjq15KNH2vptSizFGYmGWsxF xYkAw/97g4oCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 40 This patch removes unnecessary label "out" and some restructring for using device_create_file directly. Signed-off-by: Maninder Singh Reviewed-by: Rohit Thapliyal --- drivers/ssb/pci.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c index 0f28c08..d6ca4d3 100644 --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c @@ -1173,17 +1173,11 @@ void ssb_pci_exit(struct ssb_bus *bus) int ssb_pci_init(struct ssb_bus *bus) { struct pci_dev *pdev; - int err; if (bus->bustype != SSB_BUSTYPE_PCI) return 0; pdev = bus->host_pci; mutex_init(&bus->sprom_mutex); - err = device_create_file(&pdev->dev, &dev_attr_ssb_sprom); - if (err) - goto out; - -out: - return err; + return device_create_file(&pdev->dev, &dev_attr_ssb_sprom); } -- 1.7.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/