mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -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
|
@ -125,25 +125,17 @@ static int pnv_lpc_dt_xscom(PnvXScomInterface *dev, void *fdt, int xscom_offset)
|
|||
static bool opb_read(PnvLpcController *lpc, uint32_t addr, uint8_t *data,
|
||||
int sz)
|
||||
{
|
||||
bool success;
|
||||
|
||||
/* XXX Handle access size limits and FW read caching here */
|
||||
success = !address_space_rw(&lpc->opb_as, addr, MEMTXATTRS_UNSPECIFIED,
|
||||
data, sz, false);
|
||||
|
||||
return success;
|
||||
return !address_space_rw(&lpc->opb_as, addr, MEMTXATTRS_UNSPECIFIED,
|
||||
data, sz, false);
|
||||
}
|
||||
|
||||
static bool opb_write(PnvLpcController *lpc, uint32_t addr, uint8_t *data,
|
||||
int sz)
|
||||
{
|
||||
bool success;
|
||||
|
||||
/* XXX Handle access size limits here */
|
||||
success = !address_space_rw(&lpc->opb_as, addr, MEMTXATTRS_UNSPECIFIED,
|
||||
data, sz, true);
|
||||
|
||||
return success;
|
||||
return !address_space_rw(&lpc->opb_as, addr, MEMTXATTRS_UNSPECIFIED,
|
||||
data, sz, true);
|
||||
}
|
||||
|
||||
#define ECCB_CTL_READ PPC_BIT(15)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue