mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
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:
commit
fa3ddead5e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user