Merge pull request #14271 from joscollin/wip-krbd-warning

rbd: warning, ‘devno’ may be used uninitialized in this function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Brad Hubbard 2017-04-02 08:59:38 +10:00 committed by GitHub
commit fa3ddead5e

View File

@ -552,7 +552,7 @@ static int unmap_image(struct krbd_ctx *ctx, const char *devnode,
const char *options)
{
struct stat sb;
dev_t wholedevno;
dev_t wholedevno = 0;
string id;
int r;
@ -588,7 +588,7 @@ static int unmap_image(struct krbd_ctx *ctx, const char *pool,
const char *image, const char *snap,
const char *options)
{
dev_t devno;
dev_t devno = 0;
string id;
int r;