lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CH0PR20MB381839E1C7FCA1F477D7823D9C81A@CH0PR20MB3818.namprd20.prod.outlook.com>
Date:   Fri, 1 Dec 2023 19:38:14 +0000
From:   Nick Spooner <nicholas.spooner@...gate.com>
To:     "john.g.garry@...cle.com" <john.g.garry@...cle.com>,
        "yanaijie@...wei.com" <yanaijie@...wei.com>,
        "jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
        "martin.petersen@...cle.com" <martin.petersen@...cle.com>,
        "damien.lemoal@...nsource.wdc.com" <damien.lemoal@...nsource.wdc.com>
CC:     "linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: [PATCH] scsi: libsas: fix whitespace formatting

Resolve whitespace issues reported by checkpatch.pl:

WARNING: Missing a blank line after declarations
CHECK: Blank lines aren't necessary before a close brace '}'
CHECK: spaces preferred around that '|' (ctx:VxV)

Signed-off-by: Nick Spooner <nicholas.spooner@...gate.com>
---
 drivers/scsi/libsas/sas_init.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c
index 9c8cc723170d..91946f56b236 100644
--- a/drivers/scsi/libsas/sas_init.c
+++ b/drivers/scsi/libsas/sas_init.c
@@ -309,6 +309,7 @@ int sas_phy_reset(struct sas_phy *phy, int hard_reset)
        } else {
                struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent);
                struct domain_device *ddev = sas_find_dev_by_rphy(rphy);
+
                ret = sas_smp_phy_control(ddev, phy->number, reset_type, NULL);
        }
        return ret;
@@ -346,9 +347,9 @@ static int sas_set_phy_speed(struct sas_phy *phy,
        } else {
                struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent);
                struct domain_device *ddev = sas_find_dev_by_rphy(rphy);
+
                ret = sas_smp_phy_control(ddev, phy->number,
                                          PHY_FUNC_LINK_RESET, rates);
-
        }
 
        return ret;
@@ -612,7 +613,7 @@ static inline ssize_t phy_event_threshold_store(struct device *dev,
 }
 
 DEVICE_ATTR(phy_event_threshold,
-       S_IRUGO|S_IWUSR,
+       S_IRUGO | S_IWUSR,
        phy_event_threshold_show,
        phy_event_threshold_store);
 EXPORT_SYMBOL_GPL(dev_attr_phy_event_threshold);
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ