Skip to content

Commit

Permalink
Sysace: Minor coding convention fixup
Browse files Browse the repository at this point in the history
Put function call and return code test on separate lines.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Grant Likely authored and Jens Axboe committed Oct 10, 2007
1 parent cb3503c commit 34e1b83
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions drivers/block/xsysace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,8 @@ ace_alloc(struct device *dev, int id, unsigned long physaddr,
ace->bus_width = bus_width;

/* Call the setup code */
if ((rc = ace_setup(ace)) != 0)
rc = ace_setup(ace);
if (rc)
goto err_setup;

dev_set_drvdata(dev, ace);
Expand Down Expand Up @@ -1253,11 +1254,13 @@ static int __init ace_init(void)
goto err_blk;
}

if ((rc = ace_of_register()) != 0)
rc = ace_of_register();
if (rc)
goto err_of;

pr_debug("xsysace: registering platform binding\n");
if ((rc = platform_driver_register(&ace_platform_driver)) != 0)
rc = platform_driver_register(&ace_platform_driver);
if (rc)
goto err_plat;

pr_info("Xilinx SystemACE device driver, major=%i\n", ace_major);
Expand Down

0 comments on commit 34e1b83

Please sign in to comment.