Commit 75254af8 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging: csr: remove func_exit macro

this macro is used for debugging purposes,

it actually defined as

if (unifi_debug >= 5) {
	printk("unifi: <= %s\n", __FUNCTION__);
}

which produces too many of those prints if the unifi_debug is >=5.
remove these calls and the macro itself altogether
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 438d2d13
...@@ -146,7 +146,6 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv) ...@@ -146,7 +146,6 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv)
} }
} }
#endif #endif
func_exit();
return card; return card;
} /* unifi_alloc_card() */ } /* unifi_alloc_card() */
...@@ -196,7 +195,6 @@ CsrResult unifi_init_card(card_t *card, s32 led_mask) ...@@ -196,7 +195,6 @@ CsrResult unifi_init_card(card_t *card, s32 led_mask)
return r; return r;
} }
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} }
...@@ -389,8 +387,6 @@ CsrResult unifi_download(card_t *card, s32 led_mask) ...@@ -389,8 +387,6 @@ CsrResult unifi_download(card_t *card, s32 led_mask)
/* Free the firmware file information. */ /* Free the firmware file information. */
unifi_fw_read_stop(card->ospriv, dlpriv); unifi_fw_read_stop(card->ospriv, dlpriv);
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* unifi_download() */ } /* unifi_download() */
...@@ -474,8 +470,6 @@ static CsrResult unifi_hip_init(card_t *card) ...@@ -474,8 +470,6 @@ static CsrResult unifi_hip_init(card_t *card)
return r; return r;
} }
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* unifi_hip_init() */ } /* unifi_hip_init() */
...@@ -967,7 +961,6 @@ static CsrResult card_hw_init(card_t *card) ...@@ -967,7 +961,6 @@ static CsrResult card_hw_init(card_t *card)
*/ */
unifi_read_panic(card); unifi_read_panic(card);
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* card_hw_init() */ } /* card_hw_init() */
...@@ -1094,7 +1087,6 @@ static CsrResult card_wait_for_unifi_to_reset(card_t *card) ...@@ -1094,7 +1087,6 @@ static CsrResult card_wait_for_unifi_to_reset(card_t *card)
r = CSR_RESULT_FAILURE; r = CSR_RESULT_FAILURE;
} }
func_exit();
return r; return r;
} /* card_wait_for_unifi_to_reset() */ } /* card_wait_for_unifi_to_reset() */
...@@ -1128,7 +1120,6 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card) ...@@ -1128,7 +1120,6 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card)
unifi_error(card->ospriv, unifi_error(card->ospriv,
"Function reset method not supported for chip_id=%d\n", "Function reset method not supported for chip_id=%d\n",
card->chip_id); card->chip_id);
func_exit();
return CSR_RESULT_FAILURE; return CSR_RESULT_FAILURE;
} }
...@@ -1195,7 +1186,6 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card) ...@@ -1195,7 +1186,6 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card)
r = CSR_RESULT_FAILURE; r = CSR_RESULT_FAILURE;
} }
func_exit();
return r; return r;
} /* card_wait_for_unifi_to_reset() */ } /* card_wait_for_unifi_to_reset() */
...@@ -1319,7 +1309,6 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr) ...@@ -1319,7 +1309,6 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr)
*paddr = (((u32)mbox1 << 16) | mbox0); *paddr = (((u32)mbox1 << 16) | mbox0);
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* card_wait_for_firmware_to_start() */ } /* card_wait_for_firmware_to_start() */
...@@ -1347,7 +1336,6 @@ CsrResult unifi_capture_panic(card_t *card) ...@@ -1347,7 +1336,6 @@ CsrResult unifi_capture_panic(card_t *card)
*/ */
if (!card->panic_data_phy_addr || !card->panic_data_mac_addr) if (!card->panic_data_phy_addr || !card->panic_data_mac_addr)
{ {
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} }
...@@ -1362,7 +1350,6 @@ CsrResult unifi_capture_panic(card_t *card) ...@@ -1362,7 +1350,6 @@ CsrResult unifi_capture_panic(card_t *card)
unifi_info(card->ospriv, "Unable to read panic codes"); unifi_info(card->ospriv, "Unable to read panic codes");
} }
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} }
...@@ -1562,7 +1549,6 @@ void unifi_read_panic(card_t *card) ...@@ -1562,7 +1549,6 @@ void unifi_read_panic(card_t *card)
card->last_mac_panic_arg = p_arg; card->last_mac_panic_arg = p_arg;
} }
func_exit();
} }
...@@ -1712,7 +1698,6 @@ static CsrResult card_allocate_memory_resources(card_t *card) ...@@ -1712,7 +1698,6 @@ static CsrResult card_allocate_memory_resources(card_t *card)
card->memory_resources_allocated = 1; card->memory_resources_allocated = 1;
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* card_allocate_memory_resources() */ } /* card_allocate_memory_resources() */
...@@ -1787,7 +1772,6 @@ static void card_free_memory_resources(card_t *card) ...@@ -1787,7 +1772,6 @@ static void card_free_memory_resources(card_t *card)
card->memory_resources_allocated = 0; card->memory_resources_allocated = 0;
func_exit();
} /* card_free_memory_resources() */ } /* card_free_memory_resources() */
...@@ -1811,7 +1795,6 @@ static void card_init_soft_queues(card_t *card) ...@@ -1811,7 +1795,6 @@ static void card_init_soft_queues(card_t *card)
#ifndef CSR_WIFI_HIP_TA_DISABLE #ifndef CSR_WIFI_HIP_TA_DISABLE
unifi_ta_sampling_init(card); unifi_ta_sampling_init(card);
#endif #endif
func_exit();
} }
...@@ -1899,7 +1882,6 @@ void unifi_cancel_pending_signals(card_t *card) ...@@ -1899,7 +1882,6 @@ void unifi_cancel_pending_signals(card_t *card)
card_init_soft_queues(card); card_init_soft_queues(card);
func_exit();
} /* unifi_cancel_pending_signals() */ } /* unifi_cancel_pending_signals() */
...@@ -1938,7 +1920,6 @@ void unifi_free_card(card_t *card) ...@@ -1938,7 +1920,6 @@ void unifi_free_card(card_t *card)
kfree(card); kfree(card);
func_exit();
} /* unifi_free_card() */ } /* unifi_free_card() */
...@@ -2051,7 +2032,6 @@ static CsrResult card_init_slots(card_t *card) ...@@ -2051,7 +2032,6 @@ static CsrResult card_init_slots(card_t *card)
card->dynamic_slot_data.packets_interval = UNIFI_PACKETS_INTERVAL; card->dynamic_slot_data.packets_interval = UNIFI_PACKETS_INTERVAL;
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* card_init_slots() */ } /* card_init_slots() */
...@@ -2143,7 +2123,6 @@ static void CardReassignDynamicReservation(card_t *card) ...@@ -2143,7 +2123,6 @@ static void CardReassignDynamicReservation(card_t *card)
} }
card->dynamic_slot_data.total_packets_txed = 0; card->dynamic_slot_data.total_packets_txed = 0;
func_exit();
} }
...@@ -2180,7 +2159,6 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue) ...@@ -2180,7 +2159,6 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue)
if (q_len <= card->dynamic_slot_data.from_host_reserved_slots[queue]) if (q_len <= card->dynamic_slot_data.from_host_reserved_slots[queue])
{ {
unifi_trace(card->ospriv, UDBG5, "queue %d q_len %d already has that many reserved slots, exiting\n", queue, q_len); unifi_trace(card->ospriv, UDBG5, "queue %d q_len %d already has that many reserved slots, exiting\n", queue, q_len);
func_exit();
return; return;
} }
...@@ -2278,7 +2256,6 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue) ...@@ -2278,7 +2256,6 @@ static void CardCheckDynamicReservation(card_t *card, unifi_TrafficQueue queue)
card->dynamic_slot_data.from_host_max_slots[i]); card->dynamic_slot_data.from_host_max_slots[i]);
} }
func_exit();
} }
...@@ -2306,7 +2283,6 @@ void CardClearFromHostDataSlot(card_t *card, const s16 slot) ...@@ -2306,7 +2283,6 @@ void CardClearFromHostDataSlot(card_t *card, const s16 slot)
unifi_warning(card->ospriv, unifi_warning(card->ospriv,
"Surprise: request to clear an already free FH data slot: %d\n", "Surprise: request to clear an already free FH data slot: %d\n",
slot); slot);
func_exit();
return; return;
} }
...@@ -2342,7 +2318,6 @@ void CardClearFromHostDataSlot(card_t *card, const s16 slot) ...@@ -2342,7 +2318,6 @@ void CardClearFromHostDataSlot(card_t *card, const s16 slot)
unifi_trace(card->ospriv, UDBG4, "CardClearFromHostDataSlot: slot %d recycled %p\n", slot, os_data_ptr); unifi_trace(card->ospriv, UDBG4, "CardClearFromHostDataSlot: slot %d recycled %p\n", slot, os_data_ptr);
func_exit();
} /* CardClearFromHostDataSlot() */ } /* CardClearFromHostDataSlot() */
...@@ -2430,7 +2405,6 @@ u16 CardGetFreeFromHostDataSlots(card_t *card) ...@@ -2430,7 +2405,6 @@ u16 CardGetFreeFromHostDataSlots(card_t *card)
} }
} }
func_exit();
return n; return n;
} /* CardGetFreeFromHostDataSlots() */ } /* CardGetFreeFromHostDataSlots() */
...@@ -2490,7 +2464,6 @@ static CsrResult unifi_identify_hw(card_t *card) ...@@ -2490,7 +2464,6 @@ static CsrResult unifi_identify_hw(card_t *card)
ChipHelper_MarketingName(card->helper), ChipHelper_MarketingName(card->helper),
ChipHelper_FriendlyName(card->helper)); ChipHelper_FriendlyName(card->helper));
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* unifi_identify_hw() */ } /* unifi_identify_hw() */
...@@ -2572,7 +2545,6 @@ static CsrResult unifi_prepare_hw(card_t *card) ...@@ -2572,7 +2545,6 @@ static CsrResult unifi_prepare_hw(card_t *card)
return r; return r;
} }
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* unifi_prepare_hw() */ } /* unifi_prepare_hw() */
...@@ -2842,7 +2814,6 @@ static CsrResult card_reset_method_io_enable(card_t *card) ...@@ -2842,7 +2814,6 @@ static CsrResult card_reset_method_io_enable(card_t *card)
unifi_warning(card->ospriv, "card_reset_method_io_enable failed to reset UniFi\n"); unifi_warning(card->ospriv, "card_reset_method_io_enable failed to reset UniFi\n");
} }
func_exit();
return r; return r;
} /* card_reset_method_io_enable() */ } /* card_reset_method_io_enable() */
...@@ -2894,7 +2865,6 @@ static CsrResult card_reset_method_dbg_reset(card_t *card) ...@@ -2894,7 +2865,6 @@ static CsrResult card_reset_method_dbg_reset(card_t *card)
if (r != CSR_RESULT_SUCCESS) if (r != CSR_RESULT_SUCCESS)
{ {
unifi_error(card->ospriv, "Can't stop processors\n"); unifi_error(card->ospriv, "Can't stop processors\n");
func_exit();
return r; return r;
} }
...@@ -2930,7 +2900,6 @@ static CsrResult card_reset_method_dbg_reset(card_t *card) ...@@ -2930,7 +2900,6 @@ static CsrResult card_reset_method_dbg_reset(card_t *card)
unifi_warning(card->ospriv, "card_reset_method_dbg_reset failed to reset UniFi\n"); unifi_warning(card->ospriv, "card_reset_method_dbg_reset failed to reset UniFi\n");
} }
func_exit();
return r; return r;
} /* card_reset_method_dbg_reset() */ } /* card_reset_method_dbg_reset() */
...@@ -2976,7 +2945,6 @@ CsrResult unifi_card_hard_reset(card_t *card) ...@@ -2976,7 +2945,6 @@ CsrResult unifi_card_hard_reset(card_t *card)
if (r != CSR_RESULT_SUCCESS) if (r != CSR_RESULT_SUCCESS)
{ {
unifi_error(card->ospriv, "unifi_card_hard_reset failed to identify h/w\n"); unifi_error(card->ospriv, "unifi_card_hard_reset failed to identify h/w\n");
func_exit();
return r; return r;
} }
...@@ -3006,7 +2974,6 @@ CsrResult unifi_card_hard_reset(card_t *card) ...@@ -3006,7 +2974,6 @@ CsrResult unifi_card_hard_reset(card_t *card)
} }
if (r == CSR_RESULT_SUCCESS) if (r == CSR_RESULT_SUCCESS)
{ {
func_exit();
return r; return r;
} }
} }
...@@ -3069,7 +3036,6 @@ CsrResult CardGenInt(card_t *card) ...@@ -3069,7 +3036,6 @@ CsrResult CardGenInt(card_t *card)
card->unifi_interrupt_seq++; card->unifi_interrupt_seq++;
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* CardGenInt() */ } /* CardGenInt() */
...@@ -3414,7 +3380,6 @@ CsrResult CardWriteBulkData(card_t *card, card_signal_t *csptr, unifi_TrafficQue ...@@ -3414,7 +3380,6 @@ CsrResult CardWriteBulkData(card_t *card, card_signal_t *csptr, unifi_TrafficQue
{ {
unifi_trace(card->ospriv, UDBG5, "fh data slot %d: %d\n", i, card->from_host_data[i].bd.data_length); unifi_trace(card->ospriv, UDBG5, "fh data slot %d: %d\n", i, card->from_host_data[i].bd.data_length);
} }
func_exit();
return CSR_RESULT_FAILURE; return CSR_RESULT_FAILURE;
} }
} }
...@@ -3467,8 +3432,6 @@ CsrResult CardWriteBulkData(card_t *card, card_signal_t *csptr, unifi_TrafficQue ...@@ -3467,8 +3432,6 @@ CsrResult CardWriteBulkData(card_t *card, card_signal_t *csptr, unifi_TrafficQue
} }
} }
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* CardWriteBulkData() */ } /* CardWriteBulkData() */
......
...@@ -411,7 +411,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl) ...@@ -411,7 +411,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl)
if (fwinfo == NULL) if (fwinfo == NULL)
{ {
unifi_error(card->ospriv, "Failed to allocate memory for patches\n"); unifi_error(card->ospriv, "Failed to allocate memory for patches\n");
func_exit();
return CSR_WIFI_HIP_RESULT_NO_MEMORY; return CSR_WIFI_HIP_RESULT_NO_MEMORY;
} }
...@@ -427,7 +426,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl) ...@@ -427,7 +426,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl)
{ {
kfree(fwinfo); kfree(fwinfo);
unifi_error(card->ospriv, "Failed to read in patch file\n"); unifi_error(card->ospriv, "Failed to read in patch file\n");
func_exit();
return CSR_WIFI_HIP_RESULT_INVALID_VALUE; return CSR_WIFI_HIP_RESULT_INVALID_VALUE;
} }
...@@ -442,7 +440,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl) ...@@ -442,7 +440,6 @@ CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl)
card->build_id, fwinfo->build_id); card->build_id, fwinfo->build_id);
kfree(fwinfo); kfree(fwinfo);
#ifndef CSR_WIFI_IGNORE_PATCH_VERSION_MISMATCH #ifndef CSR_WIFI_IGNORE_PATCH_VERSION_MISMATCH
func_exit();
return CSR_WIFI_HIP_RESULT_INVALID_VALUE; return CSR_WIFI_HIP_RESULT_INVALID_VALUE;
#else #else
fwinfo = NULL; fwinfo = NULL;
......
...@@ -774,7 +774,6 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers) ...@@ -774,7 +774,6 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers)
done: done:
#endif #endif
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
#ifndef UNIFI_DISABLE_COREDUMP #ifndef UNIFI_DISABLE_COREDUMP
...@@ -782,7 +781,6 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers) ...@@ -782,7 +781,6 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers)
/* Unwind what we allocated so far */ /* Unwind what we allocated so far */
unifi_error(ospriv, "Out of memory allocating core dump node %d\n", i); unifi_error(ospriv, "Out of memory allocating core dump node %d\n", i);
unifi_coredump_free(card); unifi_coredump_free(card);
func_exit();
return CSR_WIFI_HIP_RESULT_NO_MEMORY; return CSR_WIFI_HIP_RESULT_NO_MEMORY;
#endif #endif
} /* unifi_coreump_init() */ } /* unifi_coreump_init() */
...@@ -841,8 +839,6 @@ void unifi_coredump_free(card_t *card) ...@@ -841,8 +839,6 @@ void unifi_coredump_free(card_t *card)
card->dump_buf = NULL; card->dump_buf = NULL;
card->dump_next_write = NULL; card->dump_next_write = NULL;
card->dump_cur_read = NULL; card->dump_cur_read = NULL;
func_exit();
} /* unifi_coredump_free() */ } /* unifi_coredump_free() */
...@@ -270,8 +270,6 @@ static CsrResult send_signal(card_t *card, const u8 *sigptr, u32 siglen, ...@@ -270,8 +270,6 @@ static CsrResult send_signal(card_t *card, const u8 *sigptr, u32 siglen,
} }
} }
func_exit();
return CSR_RESULT_SUCCESS; return CSR_RESULT_SUCCESS;
} /* send_signal() */ } /* send_signal() */
......
...@@ -276,7 +276,6 @@ unifi_open(struct inode *inode, struct file *file) ...@@ -276,7 +276,6 @@ unifi_open(struct inode *inode, struct file *file)
priv = uf_get_instance(devno); priv = uf_get_instance(devno);
if (priv == NULL) { if (priv == NULL) {
unifi_error(NULL, "unifi_open: No device present\n"); unifi_error(NULL, "unifi_open: No device present\n");
func_exit();
return -ENODEV; return -ENODEV;
} }
...@@ -288,7 +287,6 @@ unifi_open(struct inode *inode, struct file *file) ...@@ -288,7 +287,6 @@ unifi_open(struct inode *inode, struct file *file)
/* Too many clients already using this device */ /* Too many clients already using this device */
unifi_error(priv, "Too many clients already open\n"); unifi_error(priv, "Too many clients already open\n");
uf_put_instance(devno); uf_put_instance(devno);
func_exit();
return -ENOSPC; return -ENOSPC;
} }
unifi_trace(priv, UDBG1, "Client is registered to /dev/unifiudi%d\n", devno); unifi_trace(priv, UDBG1, "Client is registered to /dev/unifiudi%d\n", devno);
...@@ -308,7 +306,6 @@ unifi_open(struct inode *inode, struct file *file) ...@@ -308,7 +306,6 @@ unifi_open(struct inode *inode, struct file *file)
uf_put_instance(devno); uf_put_instance(devno);
unifi_info(priv, "There is already a configuration client using the character device\n"); unifi_info(priv, "There is already a configuration client using the character device\n");
func_exit();
return -EBUSY; return -EBUSY;
} }
#endif /* CSR_SME_USERSPACE */ #endif /* CSR_SME_USERSPACE */
...@@ -329,7 +326,6 @@ unifi_open(struct inode *inode, struct file *file) ...@@ -329,7 +326,6 @@ unifi_open(struct inode *inode, struct file *file)
uf_put_instance(devno); uf_put_instance(devno);
unifi_error(priv, "Too many clients already open\n"); unifi_error(priv, "Too many clients already open\n");
func_exit();
return -ENOSPC; return -ENOSPC;
} }
...@@ -355,7 +351,6 @@ unifi_open(struct inode *inode, struct file *file) ...@@ -355,7 +351,6 @@ unifi_open(struct inode *inode, struct file *file)
*/ */
file->private_data = udi_cli; file->private_data = udi_cli;
func_exit();
return 0; return 0;
} /* unifi_open() */ } /* unifi_open() */
...@@ -609,7 +604,6 @@ udi_send_signal_unpacked(unifi_priv_t *priv, unsigned char* data, uint data_len) ...@@ -609,7 +604,6 @@ udi_send_signal_unpacked(unifi_priv_t *priv, unsigned char* data, uint data_len)
unifi_net_data_free(priv, &bulk_data.d[i]); unifi_net_data_free(priv, &bulk_data.d[i]);
} }
} }
func_exit();
return -EIO; return -EIO;
} }
...@@ -660,7 +654,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen) ...@@ -660,7 +654,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen)
if ((signal_size <= 0) || (signal_size > buflen)) { if ((signal_size <= 0) || (signal_size > buflen)) {
unifi_error(priv, "udi_send_signal_raw - Couldn't find length of signal 0x%x\n", unifi_error(priv, "udi_send_signal_raw - Couldn't find length of signal 0x%x\n",
sig_id); sig_id);
func_exit();
return -EINVAL; return -EINVAL;
} }
unifi_trace(priv, UDBG2, "udi_send_signal_raw: signal 0x%.4X len:%d\n", unifi_trace(priv, UDBG2, "udi_send_signal_raw: signal 0x%.4X len:%d\n",
...@@ -705,7 +698,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen) ...@@ -705,7 +698,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen)
if (bytecount > buflen) { if (bytecount > buflen) {
unifi_error(priv, "udi_send_signal_raw: Not enough data (%d instead of %d)\n", buflen, bytecount); unifi_error(priv, "udi_send_signal_raw: Not enough data (%d instead of %d)\n", buflen, bytecount);
func_exit();
return -EINVAL; return -EINVAL;
} }
...@@ -713,7 +705,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen) ...@@ -713,7 +705,6 @@ udi_send_signal_raw(unifi_priv_t *priv, unsigned char *buf, int buflen)
r = ul_send_signal_raw(priv, buf, signal_size, &data_ptrs); r = ul_send_signal_raw(priv, buf, signal_size, &data_ptrs);
if (r < 0) { if (r < 0) {
unifi_error(priv, "udi_send_signal_raw: send failed (%d)\n", r); unifi_error(priv, "udi_send_signal_raw: send failed (%d)\n", r);
func_exit();
return -EIO; return -EIO;
} }
...@@ -802,7 +793,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff) ...@@ -802,7 +793,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff)
csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], len); csrResult = unifi_net_data_malloc(priv, &bulkdata.d[0], len);
if (csrResult != CSR_RESULT_SUCCESS) { if (csrResult != CSR_RESULT_SUCCESS) {
unifi_error(priv, "unifi_write: failed to allocate request_data.\n"); unifi_error(priv, "unifi_write: failed to allocate request_data.\n");
func_exit();
return -ENOMEM; return -ENOMEM;
} }
...@@ -812,7 +802,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff) ...@@ -812,7 +802,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff)
if (copy_from_user((void*)user_data_buf, p, len)) { if (copy_from_user((void*)user_data_buf, p, len)) {
unifi_error(priv, "unifi_write: copy from user failed\n"); unifi_error(priv, "unifi_write: copy from user failed\n");
unifi_net_data_free(priv, &bulkdata.d[0]); unifi_net_data_free(priv, &bulkdata.d[0]);
func_exit();
return -EFAULT; return -EFAULT;
} }
...@@ -828,7 +817,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff) ...@@ -828,7 +817,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff)
unifi_error(priv, "unifi_write - Couldn't find length of signal 0x%x\n", unifi_error(priv, "unifi_write - Couldn't find length of signal 0x%x\n",
sig_id); sig_id);
unifi_net_data_free(priv, &bulkdata.d[0]); unifi_net_data_free(priv, &bulkdata.d[0]);
func_exit();
return -EINVAL; return -EINVAL;
} }
...@@ -839,7 +827,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff) ...@@ -839,7 +827,6 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff)
signal_buf = kmalloc(signal_size, GFP_KERNEL); signal_buf = kmalloc(signal_size, GFP_KERNEL);
if (!signal_buf) { if (!signal_buf) {
unifi_net_data_free(priv, &bulkdata.d[0]); unifi_net_data_free(priv, &bulkdata.d[0]);
func_exit();
return -ENOMEM; return -ENOMEM;
} }
...@@ -1655,8 +1642,6 @@ unifi_poll(struct file *filp, poll_table *wait) ...@@ -1655,8 +1642,6 @@ unifi_poll(struct file *filp, poll_table *wait)
mask |= POLLIN | POLLRDNORM; /* readable */ mask |= POLLIN | POLLRDNORM; /* readable */
} }
func_exit();
return mask; return mask;
} /* unifi_poll() */ } /* unifi_poll() */
...@@ -1887,7 +1872,6 @@ udi_log_event(ul_client_t *pcli, ...@@ -1887,7 +1872,6 @@ udi_log_event(ul_client_t *pcli,
if (down_interruptible(&pcli->udi_sem)) { if (down_interruptible(&pcli->udi_sem)) {
printk(KERN_WARNING "udi_log_event_q: Failed to get udi sem\n"); printk(KERN_WARNING "udi_log_event_q: Failed to get udi sem\n");
kfree(logptr); kfree(logptr);
func_exit();
return; return;
} }
list_add_tail(&logptr->q, &pcli->udi_log); list_add_tail(&logptr->q, &pcli->udi_log);
...@@ -1896,7 +1880,6 @@ udi_log_event(ul_client_t *pcli, ...@@ -1896,7 +1880,6 @@ udi_log_event(ul_client_t *pcli,
/* Wake any waiting user process */ /* Wake any waiting user process */
wake_up_interruptible(&pcli->udi_wq); wake_up_interruptible(&pcli->udi_wq);
func_exit();
} /* udi_log_event() */ } /* udi_log_event() */
#ifdef CSR_SME_USERSPACE #ifdef CSR_SME_USERSPACE
...@@ -1952,8 +1935,6 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length) ...@@ -1952,8 +1935,6 @@ uf_sme_queue_message(unifi_priv_t *priv, u8 *buffer, int length)
/* It is our responsibility to free the buffer allocated in build_packed_*() */ /* It is our responsibility to free the buffer allocated in build_packed_*() */
kfree(buffer); kfree(buffer);
func_exit();
return 0; return 0;
} /* uf_sme_queue_message() */ } /* uf_sme_queue_message() */
......
...@@ -70,7 +70,6 @@ unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info) ...@@ -70,7 +70,6 @@ unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info)
} }
/* Set up callback struct for readfunc() */ /* Set up callback struct for readfunc() */
if (priv->fw_sta.dl_data != NULL) { if (priv->fw_sta.dl_data != NULL) {
func_exit();
return &priv->fw_sta; return &priv->fw_sta;
} }
...@@ -78,7 +77,6 @@ unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info) ...@@ -78,7 +77,6 @@ unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info)
unifi_error(priv, "downloading firmware... unknown request: %d\n", is_fw); unifi_error(priv, "downloading firmware... unknown request: %d\n", is_fw);
} }
func_exit();
return NULL; return NULL;
} /* unifi_fw_read_start() */ } /* unifi_fw_read_start() */
...@@ -112,7 +110,6 @@ unifi_fw_read_stop(void *ospriv, void *dlpriv) ...@@ -112,7 +110,6 @@ unifi_fw_read_stop(void *ospriv, void *dlpriv)
uf_release_firmware(priv, dl_struct); uf_release_firmware(priv, dl_struct);
} }
func_exit();
} /* unifi_fw_read_stop() */ } /* unifi_fw_read_stop() */
...@@ -142,14 +139,12 @@ unifi_fw_open_buffer(void *ospriv, void *fwbuf, u32 len) ...@@ -142,14 +139,12 @@ unifi_fw_open_buffer(void *ospriv, void *fwbuf, u32 len)
unifi_priv_t *priv = (unifi_priv_t*)ospriv; unifi_priv_t *priv = (unifi_priv_t*)ospriv;
if (fwbuf == NULL) { if (fwbuf == NULL) {
func_exit();
return NULL; return NULL;
} }
priv->fw_conv.dl_data = fwbuf; priv->fw_conv.dl_data = fwbuf;
priv->fw_conv.dl_len = len; priv->fw_conv.dl_len = len;
priv->fw_conv.fw_desc = NULL; /* No OS f/w resource is associated */ priv->fw_conv.fw_desc = NULL; /* No OS f/w resource is associated */
func_exit();
return &priv->fw_conv; return &priv->fw_conv;
} }
......
...@@ -104,11 +104,9 @@ static CsrResult signal_buffer_init(unifi_priv_t * priv, int size) ...@@ -104,11 +104,9 @@ static CsrResult signal_buffer_init(unifi_priv_t * priv, int size)
kfree(priv->rxSignalBuffer.rx_buff[j].bufptr); kfree(priv->rxSignalBuffer.rx_buff[j].bufptr);
priv->rxSignalBuffer.rx_buff[j].bufptr = NULL; priv->rxSignalBuffer.rx_buff[j].bufptr = NULL;
} }
func_exit();
return -1; return -1;
} }
} }
func_exit();
return 0; return 0;
} }
...@@ -411,7 +409,6 @@ register_unifi_sdio(CsrSdioFunction *sdio_dev, int bus_id, struct device *dev) ...@@ -411,7 +409,6 @@ register_unifi_sdio(CsrSdioFunction *sdio_dev, int bus_id, struct device *dev)
up(&Unifi_instance_mutex); up(&Unifi_instance_mutex);
func_exit();
return priv; return priv;
failed4: failed4:
...@@ -445,7 +442,6 @@ if (log_hip_signals) ...@@ -445,7 +442,6 @@ if (log_hip_signals)
up(&Unifi_instance_mutex); up(&Unifi_instance_mutex);
func_exit();
return NULL; return NULL;
} /* register_unifi_sdio() */ } /* register_unifi_sdio() */
...@@ -481,8 +477,6 @@ ask_unifi_sdio_cleanup(unifi_priv_t *priv) ...@@ -481,8 +477,6 @@ ask_unifi_sdio_cleanup(unifi_priv_t *priv)
unifi_trace(NULL, UDBG5, "ask_unifi_sdio_cleanup: wake up cleanup workqueue.\n"); unifi_trace(NULL, UDBG5, "ask_unifi_sdio_cleanup: wake up cleanup workqueue.\n");
wake_up(&Unifi_cleanup_wq); wake_up(&Unifi_cleanup_wq);
func_exit();
} /* ask_unifi_sdio_cleanup() */ } /* ask_unifi_sdio_cleanup() */
...@@ -597,8 +591,6 @@ cleanup_unifi_sdio(unifi_priv_t *priv) ...@@ -597,8 +591,6 @@ cleanup_unifi_sdio(unifi_priv_t *priv)
unifi_trace(NULL, UDBG5, "cleanup_unifi_sdio: DONE.\n"); unifi_trace(NULL, UDBG5, "cleanup_unifi_sdio: DONE.\n");
func_exit();
} /* cleanup_unifi_sdio() */ } /* cleanup_unifi_sdio() */
...@@ -632,7 +624,6 @@ unregister_unifi_sdio(int bus_id) ...@@ -632,7 +624,6 @@ unregister_unifi_sdio(int bus_id)
if (priv == NULL) { if (priv == NULL) {
unifi_error(priv, "unregister_unifi_sdio: device %d is not registered\n", unifi_error(priv, "unregister_unifi_sdio: device %d is not registered\n",
bus_id); bus_id);
func_exit();
return; return;
} }
......
...@@ -197,7 +197,6 @@ unifi_mlme_blocking_request(unifi_priv_t *priv, ul_client_t *pcli, ...@@ -197,7 +197,6 @@ unifi_mlme_blocking_request(unifi_priv_t *priv, ul_client_t *pcli,
return r; return r;
} }
func_exit();
return 0; return 0;
} /* unifi_mlme_blocking_request() */ } /* unifi_mlme_blocking_request() */
......
...@@ -202,7 +202,6 @@ netrx_radiotap(unifi_priv_t *priv, ...@@ -202,7 +202,6 @@ netrx_radiotap(unifi_priv_t *priv,
priv->stats.rx_packets++; priv->stats.rx_packets++;
priv->stats.rx_bytes += ind_data_len; priv->stats.rx_bytes += ind_data_len;
func_exit();
} /* netrx_radiotap() */ } /* netrx_radiotap() */
#endif /* RADIOTAP */ #endif /* RADIOTAP */
...@@ -314,7 +313,6 @@ netrx_prism(unifi_priv_t *priv, ...@@ -314,7 +313,6 @@ netrx_prism(unifi_priv_t *priv,
priv->stats.rx_packets++; priv->stats.rx_packets++;
priv->stats.rx_bytes += ind_data_len; priv->stats.rx_bytes += ind_data_len;
func_exit();
} /* netrx_prism() */ } /* netrx_prism() */
#endif /* PRISM */ #endif /* PRISM */
...@@ -348,7 +346,6 @@ ma_sniffdata_ind(void *ospriv, ...@@ -348,7 +346,6 @@ ma_sniffdata_ind(void *ospriv,
if (bulkdata->d[0].data_length == 0) { if (bulkdata->d[0].data_length == 0) {
unifi_warning(priv, "rx: MA-SNIFFDATA indication with zero bulk data\n"); unifi_warning(priv, "rx: MA-SNIFFDATA indication with zero bulk data\n");
func_exit();
return; return;
} }
......
This diff is collapsed.
...@@ -479,7 +479,6 @@ CsrSdioInterruptEnable(CsrSdioFunction *function) ...@@ -479,7 +479,6 @@ CsrSdioInterruptEnable(CsrSdioFunction *function)
#endif #endif
_sdio_release_host(func); _sdio_release_host(func);
func_exit();
if (err) { if (err) {
printk(KERN_ERR "unifi: %s: error %d writing IENx\n", __FUNCTION__, err); printk(KERN_ERR "unifi: %s: error %d writing IENx\n", __FUNCTION__, err);
return ConvertSdioToCsrSdioResult(err); return ConvertSdioToCsrSdioResult(err);
...@@ -506,7 +505,6 @@ CsrSdioInterruptDisable(CsrSdioFunction *function) ...@@ -506,7 +505,6 @@ CsrSdioInterruptDisable(CsrSdioFunction *function)
#endif #endif
_sdio_release_host(func); _sdio_release_host(func);
func_exit();
if (err) { if (err) {
printk(KERN_ERR "unifi: %s: error %d writing IENx\n", __FUNCTION__, err); printk(KERN_ERR "unifi: %s: error %d writing IENx\n", __FUNCTION__, err);
return ConvertSdioToCsrSdioResult(err); return ConvertSdioToCsrSdioResult(err);
...@@ -548,7 +546,6 @@ CsrSdioFunctionEnable(CsrSdioFunction *function) ...@@ -548,7 +546,6 @@ CsrSdioFunctionEnable(CsrSdioFunction *function)
unifi_error(NULL, "Failed to enable SDIO function %d\n", func->num); unifi_error(NULL, "Failed to enable SDIO function %d\n", func->num);
} }
func_exit();
return ConvertSdioToCsrSdioResult(err); return ConvertSdioToCsrSdioResult(err);
} /* CsrSdioFunctionEnable() */ } /* CsrSdioFunctionEnable() */
...@@ -580,7 +577,6 @@ CsrSdioFunctionDisable(CsrSdioFunction *function) ...@@ -580,7 +577,6 @@ CsrSdioFunctionDisable(CsrSdioFunction *function)
unifi_error(NULL, "Failed to disable SDIO function %d\n", func->num); unifi_error(NULL, "Failed to disable SDIO function %d\n", func->num);
} }
func_exit();
return ConvertSdioToCsrSdioResult(err); return ConvertSdioToCsrSdioResult(err);
} /* CsrSdioFunctionDisable() */ } /* CsrSdioFunctionDisable() */
...@@ -1096,7 +1092,6 @@ uf_glue_sdio_probe(struct sdio_func *func, ...@@ -1096,7 +1092,6 @@ uf_glue_sdio_probe(struct sdio_func *func,
wake_lock(&unifi_sdio_wake_lock); wake_lock(&unifi_sdio_wake_lock);
#endif #endif
func_exit();
return 0; return 0;
} /* uf_glue_sdio_probe() */ } /* uf_glue_sdio_probe() */
...@@ -1139,8 +1134,6 @@ uf_glue_sdio_remove(struct sdio_func *func) ...@@ -1139,8 +1134,6 @@ uf_glue_sdio_remove(struct sdio_func *func)
kfree(sdio_ctx); kfree(sdio_ctx);
func_exit();
} /* uf_glue_sdio_remove */ } /* uf_glue_sdio_remove */
...@@ -1176,7 +1169,6 @@ uf_glue_sdio_suspend(struct device *dev) ...@@ -1176,7 +1169,6 @@ uf_glue_sdio_suspend(struct device *dev)
{ {
unifi_trace(NULL, UDBG1, "uf_glue_sdio_suspend"); unifi_trace(NULL, UDBG1, "uf_glue_sdio_suspend");
func_exit();
return 0; return 0;
} /* uf_glue_sdio_suspend */ } /* uf_glue_sdio_suspend */
...@@ -1204,7 +1196,6 @@ uf_glue_sdio_resume(struct device *dev) ...@@ -1204,7 +1196,6 @@ uf_glue_sdio_resume(struct device *dev)
wake_lock(&unifi_sdio_wake_lock); wake_lock(&unifi_sdio_wake_lock);
#endif #endif
func_exit();
return 0; return 0;
} /* uf_glue_sdio_resume */ } /* uf_glue_sdio_resume */
......
...@@ -27,15 +27,11 @@ uf_sme_init(unifi_priv_t *priv) ...@@ -27,15 +27,11 @@ uf_sme_init(unifi_priv_t *priv)
{ {
int r = uf_init_wext_interface(priv); int r = uf_init_wext_interface(priv);
if (r != 0) { if (r != 0) {
func_exit();
return r; return r;
} }
} }
#endif #endif
func_exit();
return 0; return 0;
} /* uf_sme_init() */ } /* uf_sme_init() */
...@@ -54,8 +50,6 @@ uf_sme_deinit(unifi_priv_t *priv) ...@@ -54,8 +50,6 @@ uf_sme_deinit(unifi_priv_t *priv)
uf_deinit_wext_interface(priv); uf_deinit_wext_interface(priv);
#endif #endif
func_exit();
} /* uf_sme_deinit() */ } /* uf_sme_deinit() */
...@@ -327,8 +321,6 @@ sme_native_log_event(ul_client_t *pcli, ...@@ -327,8 +321,6 @@ sme_native_log_event(ul_client_t *pcli,
/* Wake any waiting user process */ /* Wake any waiting user process */
wake_up_interruptible(&client->udi_wq); wake_up_interruptible(&client->udi_wq);
func_exit();
} /* sme_native_log_event() */ } /* sme_native_log_event() */
...@@ -533,7 +525,6 @@ sme_native_mlme_event_handler(ul_client_t *pcli, ...@@ -533,7 +525,6 @@ sme_native_mlme_event_handler(ul_client_t *pcli,
break; break;
} }
func_exit();
} /* sme_native_mlme_event_handler() */ } /* sme_native_mlme_event_handler() */
...@@ -570,7 +561,6 @@ unifi_reset_state(unifi_priv_t *priv, unsigned char *macaddr, ...@@ -570,7 +561,6 @@ unifi_reset_state(unifi_priv_t *priv, unsigned char *macaddr,
priv->wext_conf.flag_associated = 0; priv->wext_conf.flag_associated = 0;
#endif #endif
func_exit();
return r; return r;
} /* unifi_reset_state() */ } /* unifi_reset_state() */
...@@ -477,8 +477,6 @@ uf_send_gratuitous_arp(unifi_priv_t *priv, u16 interfaceTag) ...@@ -477,8 +477,6 @@ uf_send_gratuitous_arp(unifi_priv_t *priv, u16 interfaceTag)
return; return;
} }
func_exit();
} }
#endif /* CSR_WIFI_SEND_GRATUITOUS_ARP */ #endif /* CSR_WIFI_SEND_GRATUITOUS_ARP */
......
...@@ -823,7 +823,6 @@ iwprivsconfwapi(struct net_device *dev, struct iw_request_info *info, ...@@ -823,7 +823,6 @@ iwprivsconfwapi(struct net_device *dev, struct iw_request_info *info,
~(CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_SMS4 | CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_SMS4); ~(CSR_WIFI_SME_ENCRYPTION_CIPHER_PAIRWISE_SMS4 | CSR_WIFI_SME_ENCRYPTION_CIPHER_GROUP_SMS4);
} }
func_exit();
return 0; return 0;
} }
...@@ -880,7 +879,6 @@ iwprivswpikey(struct net_device *dev, struct iw_request_info *info, ...@@ -880,7 +879,6 @@ iwprivswpikey(struct net_device *dev, struct iw_request_info *info,
return convert_sme_error(r); return convert_sme_error(r);
} }
func_exit();
return r; return r;
} }
#endif #endif
...@@ -932,7 +930,6 @@ unifi_siwfreq(struct net_device *dev, struct iw_request_info *info, ...@@ -932,7 +930,6 @@ unifi_siwfreq(struct net_device *dev, struct iw_request_info *info,
priv->connection_config.adhocChannel = wext_freq_to_channel(freq->m, freq->e); priv->connection_config.adhocChannel = wext_freq_to_channel(freq->m, freq->e);
} }
func_exit();
return 0; return 0;
} /* unifi_siwfreq() */ } /* unifi_siwfreq() */
...@@ -966,7 +963,6 @@ unifi_giwfreq(struct net_device *dev, struct iw_request_info *info, ...@@ -966,7 +963,6 @@ unifi_giwfreq(struct net_device *dev, struct iw_request_info *info,
(connectionInfo.networkType80211 == CSR_WIFI_SME_RADIO_IF_GHZ_5_0)); (connectionInfo.networkType80211 == CSR_WIFI_SME_RADIO_IF_GHZ_5_0));
freq->e = 6; freq->e = 6;
func_exit();
return convert_sme_error(err); return convert_sme_error(err);
} /* unifi_giwfreq() */ } /* unifi_giwfreq() */
...@@ -1006,7 +1002,6 @@ unifi_siwmode(struct net_device *dev, struct iw_request_info *info, ...@@ -1006,7 +1002,6 @@ unifi_siwmode(struct net_device *dev, struct iw_request_info *info,
priv->connection_config.ssid.length = 0; priv->connection_config.ssid.length = 0;
memset(priv->connection_config.bssid.a, 0xFF, ETH_ALEN); memset(priv->connection_config.bssid.a, 0xFF, ETH_ALEN);
func_exit();
return 0; return 0;
} /* unifi_siwmode() */ } /* unifi_siwmode() */
...@@ -1063,7 +1058,6 @@ unifi_giwmode(struct net_device *dev, struct iw_request_info *info, ...@@ -1063,7 +1058,6 @@ unifi_giwmode(struct net_device *dev, struct iw_request_info *info,
} }
unifi_trace(priv, UDBG4, "unifi_giwmode: mode = 0x%x\n", wrqu->mode); unifi_trace(priv, UDBG4, "unifi_giwmode: mode = 0x%x\n", wrqu->mode);
func_exit();
return r; return r;
} /* unifi_giwmode() */ } /* unifi_giwmode() */
...@@ -1227,11 +1221,9 @@ unifi_siwap(struct net_device *dev, struct iw_request_info *info, ...@@ -1227,11 +1221,9 @@ unifi_siwap(struct net_device *dev, struct iw_request_info *info,
err = sme_mgt_connect(priv); err = sme_mgt_connect(priv);
if (err) { if (err) {
unifi_error(priv, "unifi_siwap: Join failed, status %d\n", err); unifi_error(priv, "unifi_siwap: Join failed, status %d\n", err);
func_exit();
return convert_sme_error(err); return convert_sme_error(err);
} }
} }
func_exit();
return 0; return 0;
} /* unifi_siwap() */ } /* unifi_siwap() */
...@@ -1271,7 +1263,6 @@ unifi_giwap(struct net_device *dev, struct iw_request_info *info, ...@@ -1271,7 +1263,6 @@ unifi_giwap(struct net_device *dev, struct iw_request_info *info,
memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN); memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN);
} }
func_exit();
return 0; return 0;
} /* unifi_giwap() */ } /* unifi_giwap() */
...@@ -1354,7 +1345,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info, ...@@ -1354,7 +1345,6 @@ unifi_siwscan(struct net_device *dev, struct iw_request_info *info,
kfree(channel_list); kfree(channel_list);
} }
func_exit();
return r; return r;
} /* unifi_siwscan() */ } /* unifi_siwscan() */
...@@ -1747,11 +1737,9 @@ unifi_siwessid(struct net_device *dev, struct iw_request_info *info, ...@@ -1747,11 +1737,9 @@ unifi_siwessid(struct net_device *dev, struct iw_request_info *info,
UF_RTNL_LOCK(); UF_RTNL_LOCK();
if (err) { if (err) {
unifi_error(priv, "unifi_siwessid: Join failed, status %d\n", err); unifi_error(priv, "unifi_siwessid: Join failed, status %d\n", err);
func_exit();
return convert_sme_error(err); return convert_sme_error(err);
} }
func_exit();
return 0; return 0;
} /* unifi_siwessid() */ } /* unifi_siwessid() */
...@@ -1791,7 +1779,6 @@ unifi_giwessid(struct net_device *dev, struct iw_request_info *info, ...@@ -1791,7 +1779,6 @@ unifi_giwessid(struct net_device *dev, struct iw_request_info *info,
data->length, essid); data->length, essid);
} }
func_exit();
return 0; return 0;
} /* unifi_giwessid() */ } /* unifi_giwessid() */
...@@ -1847,7 +1834,6 @@ unifi_siwrate(struct net_device *dev, struct iw_request_info *info, ...@@ -1847,7 +1834,6 @@ unifi_siwrate(struct net_device *dev, struct iw_request_info *info,
return r; return r;
} }
func_exit();
return 0; return 0;
} /* unifi_siwrate() */ } /* unifi_siwrate() */
...@@ -1896,8 +1882,6 @@ unifi_giwrate(struct net_device *dev, struct iw_request_info *info, ...@@ -1896,8 +1882,6 @@ unifi_giwrate(struct net_device *dev, struct iw_request_info *info,
args->value = bitrate * 500000; args->value = bitrate * 500000;
args->fixed = !flag; args->fixed = !flag;
func_exit();
return 0; return 0;
} /* unifi_giwrate() */ } /* unifi_giwrate() */
...@@ -2473,7 +2457,6 @@ unifi_siwmlme(struct net_device *dev, struct iw_request_info *info, ...@@ -2473,7 +2457,6 @@ unifi_siwmlme(struct net_device *dev, struct iw_request_info *info,
return -EOPNOTSUPP; return -EOPNOTSUPP;
} }
func_exit();
return 0; return 0;
} /* unifi_siwmlme() */ } /* unifi_siwmlme() */
...@@ -2528,20 +2511,17 @@ unifi_siwgenie(struct net_device *dev, struct iw_request_info *info, ...@@ -2528,20 +2511,17 @@ unifi_siwgenie(struct net_device *dev, struct iw_request_info *info,
len = wrqu->data.length; len = wrqu->data.length;
if (len == 0) { if (len == 0) {
func_exit();
return 0; return 0;
} }
priv->connection_config.mlmeAssociateReqInformationElements = kmalloc(len, GFP_KERNEL); priv->connection_config.mlmeAssociateReqInformationElements = kmalloc(len, GFP_KERNEL);
if (priv->connection_config.mlmeAssociateReqInformationElements == NULL) { if (priv->connection_config.mlmeAssociateReqInformationElements == NULL) {
func_exit();
return -ENOMEM; return -ENOMEM;
} }
priv->connection_config.mlmeAssociateReqInformationElementsLength = len; priv->connection_config.mlmeAssociateReqInformationElementsLength = len;
memcpy( priv->connection_config.mlmeAssociateReqInformationElements, extra, len); memcpy( priv->connection_config.mlmeAssociateReqInformationElements, extra, len);
func_exit();
return 0; return 0;
} /* unifi_siwgenie() */ } /* unifi_siwgenie() */
...@@ -2578,7 +2558,6 @@ unifi_giwgenie(struct net_device *dev, struct iw_request_info *info, ...@@ -2578,7 +2558,6 @@ unifi_giwgenie(struct net_device *dev, struct iw_request_info *info,
wrqu->data.length = len; wrqu->data.length = len;
memcpy(extra, priv->connection_config.mlmeAssociateReqInformationElements, len); memcpy(extra, priv->connection_config.mlmeAssociateReqInformationElements, len);
func_exit();
return 0; return 0;
} /* unifi_giwgenie() */ } /* unifi_giwgenie() */
...@@ -2826,7 +2805,6 @@ _unifi_siwauth(struct net_device *dev, struct iw_request_info *info, ...@@ -2826,7 +2805,6 @@ _unifi_siwauth(struct net_device *dev, struct iw_request_info *info,
} }
unifi_trace(priv, UDBG2, "authModeMask = %d", priv->connection_config.authModeMask); unifi_trace(priv, UDBG2, "authModeMask = %d", priv->connection_config.authModeMask);
func_exit();
return 0; return 0;
} /* _unifi_siwauth() */ } /* _unifi_siwauth() */
...@@ -3037,7 +3015,6 @@ _unifi_siwencodeext(struct net_device *dev, struct iw_request_info *info, ...@@ -3037,7 +3015,6 @@ _unifi_siwencodeext(struct net_device *dev, struct iw_request_info *info,
return convert_sme_error(r); return convert_sme_error(r);
} }
func_exit();
return r; return r;
} /* _unifi_siwencodeext() */ } /* _unifi_siwencodeext() */
......
...@@ -521,7 +521,6 @@ unifi_process_receive_event(void *ospriv, ...@@ -521,7 +521,6 @@ unifi_process_receive_event(void *ospriv,
unifi_net_data_free(priv, (void *)&bulkdata->d[i]); unifi_net_data_free(priv, (void *)&bulkdata->d[i]);
} }
} }
func_exit();
return; return;
} }
} /* CSR_MA_PACKET_INDICATION_ID */ } /* CSR_MA_PACKET_INDICATION_ID */
...@@ -571,7 +570,6 @@ unifi_process_receive_event(void *ospriv, ...@@ -571,7 +570,6 @@ unifi_process_receive_event(void *ospriv,
} }
} }
func_exit();
} /* unifi_process_receive_event() */ } /* unifi_process_receive_event() */
...@@ -602,7 +600,6 @@ void unifi_rx_queue_flush(void *ospriv) ...@@ -602,7 +600,6 @@ void unifi_rx_queue_flush(void *ospriv)
} }
priv->rxSignalBuffer.readPointer = readPointer; priv->rxSignalBuffer.readPointer = readPointer;
} }
func_exit();
} }
void rx_wq_handler(struct work_struct *work) void rx_wq_handler(struct work_struct *work)
...@@ -691,6 +688,5 @@ unifi_receive_event(void *ospriv, ...@@ -691,6 +688,5 @@ unifi_receive_event(void *ospriv,
#else #else
unifi_process_receive_event(ospriv, sigdata, siglen, bulkdata); unifi_process_receive_event(ospriv, sigdata, siglen, bulkdata);
#endif #endif
func_exit();
} /* unifi_receive_event() */ } /* unifi_receive_event() */
...@@ -61,12 +61,6 @@ extern int unifi_debug; ...@@ -61,12 +61,6 @@ extern int unifi_debug;
* etc. * etc.
*/ */
#define func_exit() \
do { \
if (unifi_debug >= 5) { \
printk("unifi: <= %s\n", __FUNCTION__); \
} \
} while (0)
#define func_exit_r(_rc) \ #define func_exit_r(_rc) \
do { \ do { \
if (unifi_debug >= 5) { \ if (unifi_debug >= 5) { \
...@@ -101,7 +95,6 @@ void unifi_trace(void* ospriv, int level, const char *fmt, ...); ...@@ -101,7 +95,6 @@ void unifi_trace(void* ospriv, int level, const char *fmt, ...);
#else #else
/* Stubs */ /* Stubs */
#define func_exit()
#define func_exit_r(_rc) #define func_exit_r(_rc)
#define ASSERT(cond) #define ASSERT(cond)
......
...@@ -408,7 +408,6 @@ CsrResult enque_tx_data_pdu(unifi_priv_t *priv, bulk_data_param_t *bulkdata, ...@@ -408,7 +408,6 @@ CsrResult enque_tx_data_pdu(unifi_priv_t *priv, bulk_data_param_t *bulkdata,
unifi_error(priv, unifi_error(priv,
"Failed to allocate %d bytes for tx packet record\n", "Failed to allocate %d bytes for tx packet record\n",
sizeof(tx_buffered_packets_t)); sizeof(tx_buffered_packets_t));
func_exit();
return CSR_RESULT_FAILURE; return CSR_RESULT_FAILURE;
} }
...@@ -2131,7 +2130,6 @@ void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata, ...@@ -2131,7 +2130,6 @@ void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata,
unifi_error(priv, unifi_error(priv,
"uf_process_ma_vif_availibility_ind: Received unknown signal 0x%.4X.\n", "uf_process_ma_vif_availibility_ind: Received unknown signal 0x%.4X.\n",
CSR_GET_UINT16_FROM_LITTLE_ENDIAN(sigdata)); CSR_GET_UINT16_FROM_LITTLE_ENDIAN(sigdata));
func_exit();
return; return;
} }
ind = &signal.u.MaVifAvailabilityIndication; ind = &signal.u.MaVifAvailabilityIndication;
...@@ -2394,8 +2392,6 @@ void uf_send_buffered_data_from_ac(unifi_priv_t *priv, ...@@ -2394,8 +2392,6 @@ void uf_send_buffered_data_from_ac(unifi_priv_t *priv,
} }
} }
func_exit();
} }
void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q) void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
...@@ -2445,7 +2441,6 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q) ...@@ -2445,7 +2441,6 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
interfacePriv->dtimActive = FALSE; interfacePriv->dtimActive = FALSE;
} }
} }
func_exit();
return; return;
} }
if(priv->pausedStaHandle[queue] > 7) { if(priv->pausedStaHandle[queue] > 7) {
...@@ -2536,7 +2531,6 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q) ...@@ -2536,7 +2531,6 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
*/ */
unifi_trace(priv, UDBG4, "csrWifiHipSendBufferedFrames: UAPSD Resume Q=%x\n", queue); unifi_trace(priv, UDBG4, "csrWifiHipSendBufferedFrames: UAPSD Resume Q=%x\n", queue);
resume_suspended_uapsd(priv, interfaceTag); resume_suspended_uapsd(priv, interfaceTag);
func_exit();
} }
...@@ -2816,7 +2810,6 @@ void uf_send_qos_null(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI ...@@ -2816,7 +2810,6 @@ void uf_send_qos_null(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
unifi_net_data_free(priv, &bulkdata.d[0]); unifi_net_data_free(priv, &bulkdata.d[0]);
} }
func_exit();
return; return;
} }
...@@ -2901,7 +2894,6 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI ...@@ -2901,7 +2894,6 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
srcStaInfo->nullDataHostTag = INVALID_HOST_TAG; srcStaInfo->nullDataHostTag = INVALID_HOST_TAG;
} }
func_exit();
return; return;
} }
...@@ -3347,7 +3339,6 @@ void uf_prepare_send_cfm_list_for_queued_pkts(unifi_priv_t * priv, ...@@ -3347,7 +3339,6 @@ void uf_prepare_send_cfm_list_for_queued_pkts(unifi_priv_t * priv,
spin_unlock_irqrestore(&priv->tx_q_lock,lock_flags); spin_unlock_irqrestore(&priv->tx_q_lock,lock_flags);
func_exit();
} }
...@@ -3661,7 +3652,6 @@ void resume_unicast_buffered_frames(unifi_priv_t *priv, u16 interfaceTag) ...@@ -3661,7 +3652,6 @@ void resume_unicast_buffered_frames(unifi_priv_t *priv, u16 interfaceTag)
} }
} }
} }
func_exit();
} }
void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interfaceTag) void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interfaceTag)
{ {
...@@ -3688,7 +3678,6 @@ void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interface ...@@ -3688,7 +3678,6 @@ void update_eosp_to_head_of_broadcast_list_head(unifi_priv_t *priv,u16 interface
} }
spin_unlock_irqrestore(&priv->tx_q_lock,lock_flags); spin_unlock_irqrestore(&priv->tx_q_lock,lock_flags);
} }
func_exit();
} }
/* /*
......
...@@ -80,20 +80,17 @@ sme_log_event(ul_client_t *pcli, ...@@ -80,20 +80,17 @@ sme_log_event(ul_client_t *pcli,
/* Just a sanity check */ /* Just a sanity check */
if ((signal == NULL) || (signal_len <= 0)) { if ((signal == NULL) || (signal_len <= 0)) {
func_exit();
return; return;
} }
priv = uf_find_instance(pcli->instance); priv = uf_find_instance(pcli->instance);
if (!priv) { if (!priv) {
unifi_error(priv, "sme_log_event: invalid priv\n"); unifi_error(priv, "sme_log_event: invalid priv\n");
func_exit();
return; return;
} }
if (priv->smepriv == NULL) { if (priv->smepriv == NULL) {
unifi_error(priv, "sme_log_event: invalid smepriv\n"); unifi_error(priv, "sme_log_event: invalid smepriv\n");
func_exit();
return; return;
} }
...@@ -108,7 +105,6 @@ sme_log_event(ul_client_t *pcli, ...@@ -108,7 +105,6 @@ sme_log_event(ul_client_t *pcli,
if ((unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_DEBUG_STRING_INDICATION_ID) || if ((unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_DEBUG_STRING_INDICATION_ID) ||
(unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_DEBUG_WORD16_INDICATION_ID)) (unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_DEBUG_WORD16_INDICATION_ID))
{ {
func_exit();
return; return;
} }
if (unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_MA_PACKET_INDICATION_ID) if (unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_MA_PACKET_INDICATION_ID)
...@@ -170,7 +166,6 @@ sme_log_event(ul_client_t *pcli, ...@@ -170,7 +166,6 @@ sme_log_event(ul_client_t *pcli,
if (interfaceTag >= CSR_WIFI_NUM_INTERFACES) if (interfaceTag >= CSR_WIFI_NUM_INTERFACES)
{ {
unifi_error(priv, "Bad MA_PACKET_CONFIRM interfaceTag %d\n", interfaceTag); unifi_error(priv, "Bad MA_PACKET_CONFIRM interfaceTag %d\n", interfaceTag);
func_exit();
return; return;
} }
...@@ -218,7 +213,6 @@ sme_log_event(ul_client_t *pcli, ...@@ -218,7 +213,6 @@ sme_log_event(ul_client_t *pcli,
} else { } else {
unifi_trace(priv, UDBG1, "%s: M4 received from netdevice\n", __FUNCTION__); unifi_trace(priv, UDBG1, "%s: M4 received from netdevice\n", __FUNCTION__);
} }
func_exit();
return; return;
} }
} }
...@@ -247,7 +241,6 @@ sme_log_event(ul_client_t *pcli, ...@@ -247,7 +241,6 @@ sme_log_event(ul_client_t *pcli,
dataref1.length, dataref1.data, dataref1.length, dataref1.data,
dataref2.length, dataref2.data); dataref2.length, dataref2.data);
func_exit();
} /* sme_log_event() */ } /* sme_log_event() */
...@@ -1168,8 +1161,6 @@ uf_send_m4_ready_wq(struct work_struct *work) ...@@ -1168,8 +1161,6 @@ uf_send_m4_ready_wq(struct work_struct *work)
unifi_trace(priv, UDBG1, "M4ReadyToSendInd sent for peer %pMF\n", unifi_trace(priv, UDBG1, "M4ReadyToSendInd sent for peer %pMF\n",
peer.a); peer.a);
func_exit();
} /* uf_send_m4_ready_wq() */ } /* uf_send_m4_ready_wq() */
#if (defined(CSR_WIFI_SECURITY_WAPI_ENABLE) && defined(CSR_WIFI_SECURITY_WAPI_SW_ENCRYPTION)) #if (defined(CSR_WIFI_SECURITY_WAPI_ENABLE) && defined(CSR_WIFI_SECURITY_WAPI_SW_ENCRYPTION))
...@@ -1226,7 +1217,6 @@ void uf_send_pkt_to_encrypt(struct work_struct *work) ...@@ -1226,7 +1217,6 @@ void uf_send_pkt_to_encrypt(struct work_struct *work)
kfree(pktBulkData); /* Would have been copied over by the SME Handler */ kfree(pktBulkData); /* Would have been copied over by the SME Handler */
func_exit();
} else { } else {
unifi_warning(priv, "uf_send_pkt_to_encrypt() is NOT applicable for interface mode - %d\n",interfacePriv->interfaceMode); unifi_warning(priv, "uf_send_pkt_to_encrypt() is NOT applicable for interface mode - %d\n",interfacePriv->interfaceMode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment