mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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:
parent
f9f46bca59
commit
09667ea7ce
|
|
@ -180,14 +180,8 @@ brcmf_commonring_reserve_for_write_multiple(struct brcmf_commonring *commonring,
|
|||
|
||||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user