Commit b4dddb49 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Jens Axboe

xen/blkfront: avoid compiler warning from missing cases

Fix:
drivers/block/xen-blkfront.c: In function ‘blkfront_connect’:
drivers/block/xen-blkfront.c:933: warning: enumeration value ‘BLKIF_STATE_DISCONNECTED’ not handled in switch
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent 1fa73be6
...@@ -947,6 +947,9 @@ static void blkfront_connect(struct blkfront_info *info) ...@@ -947,6 +947,9 @@ static void blkfront_connect(struct blkfront_info *info)
/* fall through */ /* fall through */
case BLKIF_STATE_SUSPENDED: case BLKIF_STATE_SUSPENDED:
return; return;
default:
break;
} }
dev_dbg(&info->xbdev->dev, "%s:%s.\n", dev_dbg(&info->xbdev->dev, "%s:%s.\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment