summaryrefslogtreecommitdiff
path: root/drivers/block/xen-blkfront.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-03-11 15:10:40 -0800
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 18:31:29 +0200
commitb4dddb498c0feaff413b2a79c64e910021983775 (patch)
tree9db2959caadbf22f8bd7de160ff0ec0805e0f435 /drivers/block/xen-blkfront.c
parent1fa73be6be65028a7543bba8f14474b42e064a1b (diff)
downloadlinux-rt-b4dddb498c0feaff413b2a79c64e910021983775.tar.gz
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: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r--drivers/block/xen-blkfront.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index f47b0961fab1..9b440221755d 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -947,6 +947,9 @@ static void blkfront_connect(struct blkfront_info *info)
/* fall through */
case BLKIF_STATE_SUSPENDED:
return;
+
+ default:
+ break;
}
dev_dbg(&info->xbdev->dev, "%s:%s.\n",