Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e80ec84d authored by Raja Mani's avatar Raja Mani Committed by Kalle Valo
Browse files

ath6kl: Remove useless initialization in ath6kl_read_fwlogs()



ath6kl_read_fwlogs() assigns the value zero to the variable 'ret'
at the time of declaration. Later, return value of ath6kl_diag_read32()
repalces the init value. Hence removing useless zero assignment.

Signed-off-by: default avatarRaja Mani <rmani@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent c1762a3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -255,7 +255,7 @@ int ath6kl_read_fwlogs(struct ath6kl *ar)
	struct ath6kl_dbglog_hdr debug_hdr;
	struct ath6kl_dbglog_hdr debug_hdr;
	struct ath6kl_dbglog_buf debug_buf;
	struct ath6kl_dbglog_buf debug_buf;
	u32 address, length, dropped, firstbuf, debug_hdr_addr;
	u32 address, length, dropped, firstbuf, debug_hdr_addr;
	int ret = 0, loop;
	int ret, loop;
	u8 *buf;
	u8 *buf;


	buf = kmalloc(ATH6KL_FWLOG_PAYLOAD_SIZE, GFP_KERNEL);
	buf = kmalloc(ATH6KL_FWLOG_PAYLOAD_SIZE, GFP_KERNEL);