aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dma-debug.c
diff options
context:
space:
mode:
authorAlex Elder <elder@dreamhost.com>2012-02-02 08:13:30 -0600
committerAlex Elder <elder@dreamhost.com>2012-03-22 10:47:48 -0500
commit27cc25943fb359241546e7bb7a3ab1c2f35796a2 (patch)
treeb5b957d4732a9fc3cc4b9eff33344eb5faabde2e /lib/dma-debug.c
parentrbd: reduce memory used for rbd_dev fields (diff)
downloadlinux-rng-27cc25943fb359241546e7bb7a3ab1c2f35796a2.tar.xz
linux-rng-27cc25943fb359241546e7bb7a3ab1c2f35796a2.zip
rbd: simplify error handling in rbd_add()
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>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions