ath10k: remove impossible code
len has been initialized with a value of 0 and buf_len with 4096. There is no way that this condition (len > buf_len) can be true now. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
This commit is contained in:
parent
3dfdfb9855
commit
3046d051c2
1 changed files with 0 additions and 3 deletions
|
@ -2187,9 +2187,6 @@ static ssize_t ath10k_debug_fw_checksums_read(struct file *file,
|
|||
|
||||
mutex_lock(&ar->conf_mutex);
|
||||
|
||||
if (len > buf_len)
|
||||
len = buf_len;
|
||||
|
||||
len += scnprintf(buf + len, buf_len - len,
|
||||
"firmware-N.bin\t\t%08x\n",
|
||||
crc32_le(0, ar->firmware->data, ar->firmware->size));
|
||||
|
|
Loading…
Add table
Reference in a new issue