summaryrefslogtreecommitdiffstats
path: root/lib/mpi/generic_mpih-add1.c
diff options
context:
space:
mode:
authorMichael Kerrisk (man-pages) <mtk.manpages@gmail.com>2016-10-11 13:53:34 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-10-11 15:06:32 -0700
commit09b4d1990094dd22c27fb0163534db419458569c (patch)
treee01eedf92ae4880800cdf515f3bda8a5177c56f6 /lib/mpi/generic_mpih-add1.c
parentb0b91d18e2e97b741b294af9333824ecc3fadfd8 (diff)
downloadblackbird-obmc-linux-09b4d1990094dd22c27fb0163534db419458569c.tar.gz
blackbird-obmc-linux-09b4d1990094dd22c27fb0163534db419458569c.zip
pipe: simplify logic in alloc_pipe_info()
Replace an 'if' block that covers most of the code in this function with a 'goto'. This makes the code a little simpler to read, and also simplifies the next patch (fix limit checking in alloc_pipe_info()) Link: http://lkml.kernel.org/r/aef030c1-0257-98a9-4988-186efa48530c@gmail.com Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com> Reviewed-by: Vegard Nossum <vegard.nossum@oracle.com> Cc: Willy Tarreau <w@1wt.eu> Cc: <socketpair@gmail.com> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Jens Axboe <axboe@fb.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/mpi/generic_mpih-add1.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud