mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00: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
1 changed files with 1 additions and 7 deletions
|
@ -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 a new issue