mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Remove unnecessary variables for function return value
Re-run Coccinelle script scripts/coccinelle/return_directly.cocci Signed-off-by: Laurent Vivier <lvivier@redhat.com> ppc part Acked-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
f23c81073a
commit
4a4ff4c58f
20 changed files with 79 additions and 248 deletions
|
@ -511,7 +511,6 @@ static uint32_t ftgmac100_rxpoll(FTGMAC100State *s)
|
|||
|
||||
uint32_t cnt = 1024 * FTGMAC100_APTC_RXPOLL_CNT(s->aptcr);
|
||||
uint32_t speed = (s->maccr & FTGMAC100_MACCR_FAST_MODE) ? 1 : 0;
|
||||
uint32_t period;
|
||||
|
||||
if (s->aptcr & FTGMAC100_APTC_RXPOLL_TIME_SEL) {
|
||||
cnt <<= 4;
|
||||
|
@ -521,9 +520,7 @@ static uint32_t ftgmac100_rxpoll(FTGMAC100State *s)
|
|||
speed = 2;
|
||||
}
|
||||
|
||||
period = cnt / div[speed];
|
||||
|
||||
return period;
|
||||
return cnt / div[speed];
|
||||
}
|
||||
|
||||
static void ftgmac100_reset(DeviceState *d)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue