Message ID | 20230105150321.357607-7-ioana.ciornei@nxp.com |
---|---|
State | Accepted |
Commit | f45ed0b5ec18c6a2df4d04c53c65d3c016ca085f |
Delegated to: | Tom Rini |
Headers | show |
Series | drivers: net: fsl-mc: cleanup coding style | expand |
On Thu, Jan 5, 2023 at 5:03 PM Ioana Ciornei <ioana.ciornei@nxp.com> wrote: > > There were some cases in which the function parameters were not aligned > to the open paranthesis. Fix those instances. > > Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> > --- > drivers/net/fsl-mc/mc.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c > index 5ad47e3414b5..531835fbd503 100644 > --- a/drivers/net/fsl-mc/mc.c > +++ b/drivers/net/fsl-mc/mc.c > @@ -356,8 +356,7 @@ static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, > if (noff < 0) { > err = fdt_increase_size(blob, 200); > if (err) { > - printf("fdt_increase_size: err=%s\n", > - fdt_strerror(err)); > + printf("fdt_increase_size: err=%s\n", fdt_strerror(err)); > return err; > } > > @@ -373,7 +372,7 @@ static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, > "link_type", link_type_mode); > if (err) { > printf("fdt_appendprop_string: err=%s\n", > - fdt_strerror(err)); > + fdt_strerror(err)); > return err; > } > } > @@ -1158,10 +1157,9 @@ static int dprc_init(void) > cfg.icid = DPRC_GET_ICID_FROM_POOL; > cfg.portal_id = DPRC_GET_PORTAL_ID_FROM_POOL; > err = dprc_create_container(root_mc_io, MC_CMD_NO_FLAGS, > - root_dprc_handle, > - &cfg, > - &child_dprc_id, > - &mc_portal_offset); > + root_dprc_handle, &cfg, > + &child_dprc_id, > + &mc_portal_offset); > if (err < 0) { > printf("dprc_create_container() failed: %d\n", err); > goto err_create; > -- > 2.25.1 > Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 5ad47e3414b5..531835fbd503 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -356,8 +356,7 @@ static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, if (noff < 0) { err = fdt_increase_size(blob, 200); if (err) { - printf("fdt_increase_size: err=%s\n", - fdt_strerror(err)); + printf("fdt_increase_size: err=%s\n", fdt_strerror(err)); return err; } @@ -373,7 +372,7 @@ static int mc_fixup_dpc_mac_addr(void *blob, int dpmac_id, "link_type", link_type_mode); if (err) { printf("fdt_appendprop_string: err=%s\n", - fdt_strerror(err)); + fdt_strerror(err)); return err; } } @@ -1158,10 +1157,9 @@ static int dprc_init(void) cfg.icid = DPRC_GET_ICID_FROM_POOL; cfg.portal_id = DPRC_GET_PORTAL_ID_FROM_POOL; err = dprc_create_container(root_mc_io, MC_CMD_NO_FLAGS, - root_dprc_handle, - &cfg, - &child_dprc_id, - &mc_portal_offset); + root_dprc_handle, &cfg, + &child_dprc_id, + &mc_portal_offset); if (err < 0) { printf("dprc_create_container() failed: %d\n", err); goto err_create;
There were some cases in which the function parameters were not aligned to the open paranthesis. Fix those instances. Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> --- drivers/net/fsl-mc/mc.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-)