Merge "qcacld-3.0: Fix code style issues" into wlan-cld3.driver.lnx.2.0-dev

This commit is contained in:
CNSS_WLAN Service 2017-10-14 09:20:34 -07:00 • committed by Gerrit - the friendly Code Review server
commit 3c8c4055a9
4 changed files with 6 additions and 4 deletions

View file

@ -871,7 +871,7 @@ int wlan_hdd_send_avoid_freq_event(struct hdd_context *hdd_ctx,
static enum qca_wlan_vendor_hang_reason
hdd_convert_hang_reason(enum qdf_hang_reason reason)
{
uint32_t ret_val;
u32 ret_val;
switch (reason) {
case QDF_RX_HASH_NO_ENTRY_FOUND:
@ -941,7 +941,7 @@ int wlan_hdd_send_hang_reason_event(struct hdd_context *hdd_ctx,
hang_reason = hdd_convert_hang_reason(reason);
if (nla_put_u32(vendor_event, QCA_WLAN_VENDOR_ATTR_HANG_REASON,
(uint32_t) hang_reason)) {
(uint32_t)hang_reason)) {
hdd_err("QCA_WLAN_VENDOR_ATTR_HANG_REASON put fail");
kfree_skb(vendor_event);
return -EINVAL;
@ -952,6 +952,7 @@ int wlan_hdd_send_hang_reason_event(struct hdd_context *hdd_ctx,
EXIT();
return 0;
}
#undef HANG_REASON_INDEX
/**

View file

@ -333,7 +333,7 @@ int wlan_hdd_send_avoid_freq_event(struct hdd_context *hdd_ctx,
*
* Return: 0 on success or failure reason
*/
int wlan_hdd_send_hang_reason_event(struct hdd_context *pHddCtx, uint32_t reason);
int wlan_hdd_send_hang_reason_event(struct hdd_context *hdd_ctx, uint32_t reason);
int wlan_hdd_send_avoid_freq_for_dnbs(struct hdd_context *hdd_ctx, uint8_t op_chan);

View file

@ -501,7 +501,7 @@ static inline void hdd_wlan_ssr_shutdown_event(void)
*/
static void hdd_send_hang_reason(void)
{
uint32_t reason = 0;
enum qdf_hang_reason reason = QDF_REASON_UNSPECIFIED;
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
if (wlan_hdd_validate_context(hdd_ctx))

View file

@ -883,6 +883,7 @@ free_mem:
#endif
}
#undef SCAN_FAILURE
/**