mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13: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
|
@ -1736,9 +1736,7 @@ Operand_arr_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_arr_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0xf) != 0;
|
||||
return error;
|
||||
return (*valp & ~0xf) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1750,9 +1748,7 @@ Operand_ars_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_ars_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0xf) != 0;
|
||||
return error;
|
||||
return (*valp & ~0xf) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1764,9 +1760,7 @@ Operand_art_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_art_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0xf) != 0;
|
||||
return error;
|
||||
return (*valp & ~0xf) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1778,9 +1772,7 @@ Operand_ar0_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_ar0_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x1f) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x1f) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1792,9 +1784,7 @@ Operand_ar4_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_ar4_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x1f) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x1f) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1806,9 +1796,7 @@ Operand_ar8_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_ar8_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x1f) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x1f) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1820,9 +1808,7 @@ Operand_ar12_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_ar12_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x1f) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x1f) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -1834,9 +1820,7 @@ Operand_ars_entry_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_ars_entry_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x1f) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x1f) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2406,9 +2390,7 @@ Operand_mx_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_mx_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x3) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x3) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2436,9 +2418,7 @@ Operand_mw_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_mw_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x3) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x3) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2450,9 +2430,7 @@ Operand_mr0_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_mr0_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x3) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x3) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2464,9 +2442,7 @@ Operand_mr1_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_mr1_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x3) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x3) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2478,9 +2454,7 @@ Operand_mr2_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_mr2_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x3) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x3) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2492,9 +2466,7 @@ Operand_mr3_decode (uint32 *valp ATTRIBUTE_UNUSED)
|
|||
static int
|
||||
Operand_mr3_encode (uint32 *valp)
|
||||
{
|
||||
int error;
|
||||
error = (*valp & ~0x3) != 0;
|
||||
return error;
|
||||
return (*valp & ~0x3) != 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue