Staging: bcm: Shortened lines in get_dsx_sf_data_to_application()
authorMatthias Beyer <mail@beyermatthias.de>
Fri, 23 May 2014 20:23:41 +0000 (22:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 22:26:35 +0000 (07:26 +0900)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/CmHost.c

index 16262bbc5c2302a4af427cb90b7e9f196a540123..3d8c049127392a7d946336340ea644173192d7ed 100644 (file)
@@ -1831,22 +1831,29 @@ bool CmControlResponseMessage(struct bcm_mini_adapter *Adapter,  /* <Pointer to
        return TRUE;
 }
 
-int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter, UINT uiSFId, void __user *user_buffer)
+int get_dsx_sf_data_to_application(struct bcm_mini_adapter *Adapter,
+               UINT uiSFId, void __user *user_buffer)
 {
        int status = 0;
        struct bcm_packet_info *psSfInfo = NULL;
 
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "status =%d", status);
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       "status =%d", status);
        status = SearchSfid(Adapter, uiSFId);
        if (status >= NO_OF_QUEUES) {
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "SFID %d not present in queue !!!", uiSFId);
+               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                               "SFID %d not present in queue !!!", uiSFId);
                return -EINVAL;
        }
-       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "status =%d", status);
+       BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL,
+                       "status =%d", status);
        psSfInfo = &Adapter->PackInfo[status];
-       if (psSfInfo->pstSFIndication && copy_to_user(user_buffer,
-                                                       psSfInfo->pstSFIndication, sizeof(struct bcm_add_indication_alt))) {
-               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0, "copy to user failed SFID %d, present in queue !!!", uiSFId);
+       if (psSfInfo->pstSFIndication
+                       && copy_to_user(user_buffer, psSfInfo->pstSFIndication,
+                               sizeof(struct bcm_add_indication_alt))) {
+               BCM_DEBUG_PRINT(Adapter, DBG_TYPE_PRINTK, 0, 0,
+                               "copy to user failed SFID %d, present in queue !!!",
+                               uiSFId);
                status = -EFAULT;
                return status;
        }