git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60571c7
)
rbd: simplify error handling in rbd_add()
author
Alex Elder
<elder@dreamhost.com>
Thu, 2 Feb 2012 14:13:30 +0000
(08:13 -0600)
committer
Alex Elder
<elder@dreamhost.com>
Thu, 22 Mar 2012 15:47:48 +0000
(10:47 -0500)
If a couple pointers are initialized to NULL then a single
"out_nomem" label can be used for all of the memory allocation
failure cases in rbd_add().
Also, get rid of the "irc" local variable there. There is no
real need for "rc" to be type ssize_t, and it can be used in
the spot "irc" was.
Signed-off-by: Alex Elder <elder@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
drivers/block/rbd.c
patch
|
blob
|
history
diff --cc
drivers/block/rbd.c
Simple merge