powerpc: Squash lines for simple wrapper functions
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committato da
Michael Ellerman

parent
6deb6b474b
commit
7f2462acb6
@@ -170,14 +170,8 @@ int ps3_repository_read_bus_str(unsigned int bus_index, const char *bus_str,
|
||||
|
||||
int ps3_repository_read_bus_id(unsigned int bus_index, u64 *bus_id)
|
||||
{
|
||||
int result;
|
||||
|
||||
result = read_node(PS3_LPAR_ID_PME,
|
||||
make_first_field("bus", bus_index),
|
||||
make_field("id", 0),
|
||||
0, 0,
|
||||
bus_id, NULL);
|
||||
return result;
|
||||
return read_node(PS3_LPAR_ID_PME, make_first_field("bus", bus_index),
|
||||
make_field("id", 0), 0, 0, bus_id, NULL);
|
||||
}
|
||||
|
||||
int ps3_repository_read_bus_type(unsigned int bus_index,
|
||||
@@ -224,15 +218,9 @@ int ps3_repository_read_dev_str(unsigned int bus_index,
|
||||
int ps3_repository_read_dev_id(unsigned int bus_index, unsigned int dev_index,
|
||||
u64 *dev_id)
|
||||
{
|
||||
int result;
|
||||
|
||||
result = read_node(PS3_LPAR_ID_PME,
|
||||
make_first_field("bus", bus_index),
|
||||
make_field("dev", dev_index),
|
||||
make_field("id", 0),
|
||||
0,
|
||||
dev_id, NULL);
|
||||
return result;
|
||||
return read_node(PS3_LPAR_ID_PME, make_first_field("bus", bus_index),
|
||||
make_field("dev", dev_index), make_field("id", 0), 0,
|
||||
dev_id, NULL);
|
||||
}
|
||||
|
||||
int ps3_repository_read_dev_type(unsigned int bus_index,
|
||||
|
Fai riferimento in un nuovo problema
Block a user