brcm80211: remove redundant pointer 'address'
Pointer 'address' is being assigned and updated in a few places by it is never read. Hence the assignments are redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200405133906.381358-1-colin.king@canonical.com
This commit is contained in:

committed by
Kalle Valo

parent
f9f46bca59
commit
09667ea7ce
@@ -180,14 +180,8 @@ again:
|
||||
|
||||
int brcmf_commonring_write_complete(struct brcmf_commonring *commonring)
|
||||
{
|
||||
void *address;
|
||||
|
||||
address = commonring->buf_addr;
|
||||
address += (commonring->f_ptr * commonring->item_len);
|
||||
if (commonring->f_ptr > commonring->w_ptr) {
|
||||
address = commonring->buf_addr;
|
||||
if (commonring->f_ptr > commonring->w_ptr)
|
||||
commonring->f_ptr = 0;
|
||||
}
|
||||
|
||||
commonring->f_ptr = commonring->w_ptr;
|
||||
|
||||
|
Reference in New Issue
Block a user