staging: wlags49_h2: remove DBG_LEAVE()
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / staging / wlags49_h2 / wl_priv.c
index a0c348e..828ef2c 100644 (file)
@@ -161,7 +161,6 @@ int wvlan_uil(struct uilreq *urq, struct wl_private *lp)
                ioctl_ret = -EOPNOTSUPP;
                break;
        }
-       DBG_LEAVE(DbgInfo);
        return ioctl_ret;
 } /* wvlan_uil */
 /*============================================================================*/
@@ -201,7 +200,6 @@ int wvlan_uil_connect(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_IN_USE;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_connect */
 /*============================================================================*/
@@ -250,7 +248,6 @@ int wvlan_uil_disconnect(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_disconnect */
 /*============================================================================*/
@@ -322,7 +319,6 @@ int wvlan_uil_action(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_action */
 /*============================================================================*/
@@ -371,7 +367,6 @@ int wvlan_uil_block(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_block */
 /*============================================================================*/
@@ -419,7 +414,6 @@ int wvlan_uil_unblock(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_unblock */
 /*============================================================================*/
@@ -462,7 +456,6 @@ int wvlan_uil_send_diag_msg(struct uilreq *urq, struct wl_private *lp)
                                        if (result != 0) {
                                                DBG_ERROR(DbgInfo, "verify_area failed, result: %d\n", result);
                                                urq->result = UIL_FAILURE;
-                                               DBG_LEAVE(DbgInfo);
                                                return result;
                                        }
 
@@ -481,7 +474,6 @@ int wvlan_uil_send_diag_msg(struct uilreq *urq, struct wl_private *lp)
                                                DBG_ERROR(DbgInfo, "ENOMEM\n");
                                                urq->result = UIL_FAILURE;
                                                result = -ENOMEM;
-                                               DBG_LEAVE(DbgInfo);
                                                return result;
                                        }
 
@@ -502,7 +494,6 @@ int wvlan_uil_send_diag_msg(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_send_diag_msg */
 /*============================================================================*/
@@ -548,7 +539,6 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)
                                        urq->result = UIL_ERR_LEN;
                                        DBG_ERROR(DbgInfo, "No Length/Type in LTV!!!\n");
                                        DBG_ERROR(DbgInfo, "UIL_ERR_LEN\n");
-                                       DBG_LEAVE(DbgInfo);
                                        return result;
                                }
 
@@ -557,7 +547,6 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)
                                if (result != 0) {
                                        urq->result = UIL_FAILURE;
                                        DBG_ERROR(DbgInfo, "verify_area(), VERIFY_READ FAILED\n");
-                                       DBG_LEAVE(DbgInfo);
                                        return result;
                                }
 
@@ -570,7 +559,6 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)
                                        urq->len = sizeof(lp->ltvRecord);
                                        urq->result = UIL_ERR_LEN;
                                        DBG_ERROR(DbgInfo, "UIL_ERR_LEN\n");
-                                       DBG_LEAVE(DbgInfo);
                                        return result;
                                }
 
@@ -586,7 +574,6 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)
                                                urq->len = sizeof(lp->ltvRecord);
                                                urq->result = UIL_ERR_LEN;
                                                result = -ENOMEM;
-                                               DBG_LEAVE(DbgInfo);
                                                return result;
                                        }
                                } else {
@@ -1120,7 +1107,6 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_put_info */
 
@@ -1162,7 +1148,6 @@ int wvlan_uil_get_info(struct uilreq *urq, struct wl_private *lp)
                                DBG_ERROR(DbgInfo, "No Length/Type in LTV!!!\n");
                                DBG_ERROR(DbgInfo, "UIL_ERR_LEN\n");
                                urq->result = UIL_ERR_LEN;
-                               DBG_LEAVE(DbgInfo);
                                return result;
                        }
 
@@ -1171,7 +1156,6 @@ int wvlan_uil_get_info(struct uilreq *urq, struct wl_private *lp)
                        if (result != 0) {
                                DBG_ERROR(DbgInfo, "verify_area(), VERIFY_READ FAILED\n");
                                urq->result = UIL_FAILURE;
-                               DBG_LEAVE(DbgInfo);
                                return result;
                        }
 
@@ -1184,7 +1168,6 @@ int wvlan_uil_get_info(struct uilreq *urq, struct wl_private *lp)
                                DBG_ERROR(DbgInfo, "Incoming LTV too big\n");
                                urq->len = sizeof(lp->ltvRecord);
                                urq->result = UIL_ERR_LEN;
-                               DBG_LEAVE(DbgInfo);
                                return result;
                        }
 
@@ -1468,7 +1451,6 @@ int wvlan_uil_get_info(struct uilreq *urq, struct wl_private *lp)
                urq->result = UIL_ERR_WRONG_IFB;
        }
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* wvlan_uil_get_info */
 /*============================================================================*/
@@ -1504,7 +1486,6 @@ int cfg_driver_info(struct uilreq *urq, struct wl_private *lp)
        if (urq->len < sizeof(lp->driverInfo)) {
                urq->len = sizeof(lp->driverInfo);
                urq->result = UIL_ERR_LEN;
-               DBG_LEAVE(DbgInfo);
                return result;
        }
 
@@ -1512,7 +1493,6 @@ int cfg_driver_info(struct uilreq *urq, struct wl_private *lp)
        result = verify_area(VERIFY_WRITE, urq->data, sizeof(lp->driverInfo));
        if (result != 0) {
                urq->result = UIL_FAILURE;
-               DBG_LEAVE(DbgInfo);
                return result;
        }
 
@@ -1522,7 +1502,6 @@ int cfg_driver_info(struct uilreq *urq, struct wl_private *lp)
        urq->result = UIL_SUCCESS;
        copy_to_user(urq->data, &(lp->driverInfo), sizeof(lp->driverInfo));
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* cfg_driver_info */
 /*============================================================================*/
@@ -1557,7 +1536,6 @@ int cfg_driver_identity(struct uilreq *urq, struct wl_private *lp)
        if (urq->len < sizeof(lp->driverIdentity)) {
                urq->len = sizeof(lp->driverIdentity);
                urq->result = UIL_ERR_LEN;
-               DBG_LEAVE(DbgInfo);
                return result;
        }
 
@@ -1565,7 +1543,6 @@ int cfg_driver_identity(struct uilreq *urq, struct wl_private *lp)
        result = verify_area(VERIFY_WRITE, urq->data, sizeof(lp->driverIdentity));
        if (result != 0) {
                urq->result = UIL_FAILURE;
-               DBG_LEAVE(DbgInfo);
                return result;
        }
 
@@ -1573,7 +1550,6 @@ int cfg_driver_identity(struct uilreq *urq, struct wl_private *lp)
        urq->result = UIL_SUCCESS;
        copy_to_user(urq->data, &(lp->driverIdentity), sizeof(lp->driverIdentity));
 
-       DBG_LEAVE(DbgInfo);
        return result;
 } /* cfg_driver_identity */
 /*============================================================================*/
@@ -1625,7 +1601,6 @@ int wvlan_set_netname(struct net_device *dev,
        wl_apply(lp);
        wl_unlock(lp, &flags);
 
-       DBG_LEAVE(DbgInfo);
        return ret;
 } /* wvlan_set_netname */
 /*============================================================================*/
@@ -1684,7 +1659,6 @@ int wvlan_get_netname(struct net_device *dev,
 
        wl_unlock(lp, &flags);
 
-       DBG_LEAVE(DbgInfo);
        return ret;
 } /* wvlan_get_netname */
 /*============================================================================*/
@@ -1731,7 +1705,6 @@ int wvlan_set_station_nickname(struct net_device *dev,
        wl_apply(lp);
        wl_unlock(lp, &flags);
 
-       DBG_LEAVE(DbgInfo);
        return ret;
 } /* wvlan_set_station_nickname */
 /*============================================================================*/
@@ -1790,7 +1763,6 @@ int wvlan_get_station_nickname(struct net_device *dev,
        wl_unlock(lp, &flags);
 
 /* out: */
-       DBG_LEAVE(DbgInfo);
        return ret;
 } /* wvlan_get_station_nickname */
 /*============================================================================*/
@@ -1846,7 +1818,6 @@ out_unlock:
        wl_unlock(lp, &flags);
 
 /* out: */
-       DBG_LEAVE(DbgInfo);
        return ret;
 }
 
@@ -1903,7 +1874,6 @@ int wvlan_get_porttype(struct net_device *dev,
        wl_unlock(lp, &flags);
 
 /* out: */
-       DBG_LEAVE(DbgInfo);
        return ret;
 } /* wvlan_get_porttype */
 /*============================================================================*/
@@ -1967,7 +1937,6 @@ int wvlan_rts(struct rtsreq *rrq, __u32 io_base)
                break;
        }
 
-       DBG_LEAVE(DbgInfo);
        return ioctl_ret;
 } /* wvlan_rts */
 /*============================================================================*/