Staging: unisys: Add missing blank line
authorMahati Chamarthy <mahati.chamarthy@gmail.com>
Mon, 29 Sep 2014 10:19:25 +0000 (15:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Oct 2014 16:39:33 +0000 (09:39 -0700)
This fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/virtpci/virtpci.c
drivers/staging/unisys/visorchannel/visorchannel_funcs.c

index 261a52f20ba7c9f8464dc661502964344e8ae2dd..2758c47acc30e7c7fd2e4226d9a9153837e1897d 100644 (file)
@@ -174,6 +174,7 @@ static inline
 int WAIT_FOR_IO_CHANNEL(ULTRA_IO_CHANNEL_PROTOCOL __iomem  *chanptr)
 {
        int count = 120;
+
        while (count > 0) {
 
                if (ULTRA_CHANNEL_SERVER_READY(&chanptr->ChannelHeader))
@@ -189,6 +190,7 @@ static int write_vbus_chpInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
                              ULTRA_VBUS_DEVICEINFO *info)
 {
        int off;
+
        if (!chan) {
                LOGERR("vbus channel not present");
                return -1;
@@ -207,6 +209,7 @@ static int write_vbus_busInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
                              ULTRA_VBUS_DEVICEINFO *info)
 {
        int off;
+
        if (!chan) {
                LOGERR("vbus channel not present");
                return -1;
@@ -228,6 +231,7 @@ write_vbus_devInfo(ULTRA_VBUS_CHANNEL_PROTOCOL *chan,
                   ULTRA_VBUS_DEVICEINFO *info, int devix)
 {
        int off;
+
        if (!chan) {
                LOGERR("vbus channel not present");
                return -1;
@@ -251,6 +255,7 @@ static int add_vbus(struct add_vbus_guestpart *addparams)
 {
        int ret;
        struct device *vbus;
+
        vbus = kzalloc(sizeof(struct device), GFP_ATOMIC);
 
        POSTCODE_LINUX_2(VPCI_CREATE_ENTRY_PC, POSTCODE_SEVERITY_INFO);
@@ -856,6 +861,7 @@ static int virtpci_device_remove(struct device *dev_)
        */
        struct virtpci_dev *virtpcidev = device_to_virtpci_dev(dev_);
        struct virtpci_driver *virtpcidrv = virtpcidev->mydriver;
+
        LOGINF("In virtpci_device_remove bus_id:%s dev_:%p virtpcidev:%p dev->driver:%p drivername:%s\n",
               BUS_ID(dev_), dev_, virtpcidev, dev_->driver,
               dev_->driver->name);     /* VERBOSE/DEBUG */
@@ -1308,6 +1314,7 @@ static ssize_t virtpci_driver_attr_show(struct kobject *kobj,
 
        struct driver_private *dprivate = to_driver(kobj);
        struct device_driver *driver;
+
        if (dprivate != NULL)
                driver = dprivate->driver;
        else
@@ -1330,6 +1337,7 @@ static ssize_t virtpci_driver_attr_store(struct kobject *kobj,
 
        struct driver_private *dprivate = to_driver(kobj);
        struct device_driver *driver;
+
        if (dprivate != NULL)
                driver = dprivate->driver;
        else
index 947b23c1e47817052dfa317ff2a51e1055398529..01a44c5535007146eb3d263d5ec6a64ca7808303 100644 (file)
@@ -257,6 +257,7 @@ visorchannel_clear(VISORCHANNEL *channel, ulong offset, u8 ch, ulong nbytes)
        while (nbytes > 0) {
                ulong thisbytes = bufsize;
                int x = -1;
+
                if (nbytes < thisbytes)
                        thisbytes = nbytes;
                x = visor_memregion_write(channel->memregion, offset + written,
@@ -520,6 +521,7 @@ int
 visorchannel_signalqueue_max_slots(VISORCHANNEL *channel, u32 queue)
 {
        SIGNAL_QUEUE_HEADER sig_hdr;
+
        if (!sig_read_header(channel, queue, &sig_hdr))
                return 0;
        return (int) sig_hdr.MaxSignals;
@@ -612,6 +614,7 @@ visorchannel_debug(VISORCHANNEL *channel, int nQueues,
        else
                for (i = 0; i < nQueues; i++) {
                        SIGNAL_QUEUE_HEADER q;
+
                        errcode = visorchannel_read(channel,
                                                    off + phdr->oChannelSpace +
                                                    (i * sizeof(q)),