aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorRyan Mallon <[email protected]>2012-10-22 11:39:12 +1100
committerLinus Walleij <[email protected]>2012-10-23 00:13:36 +0200
commitfc4e2514995d9cd7f3e1a67098ce65d72acf8ec7 (patch)
tree05cb8ff2fbf178fd5282e970173cac05f6e6c132 /fs/jbd2/commit.c
parent67a0d4993d85ee2f42c9909127794553df69dd59 (diff)
gpiolib: Refactor gpio_export
The gpio_export function uses nested if statements and the status variable to handle the failure cases. This makes the function logic difficult to follow. Refactor the code to abort immediately on failure using goto. This makes the code slightly longer, but significantly reduces the nesting and number of split lines and makes the code easier to read. Signed-off-by: Ryan Mallon <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions