summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-03-12 02:10:40 +0300
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 20:31:29 +0400
commitb4dddb498c0feaff413b2a79c64e910021983775 (patch)
tree9db2959caadbf22f8bd7de160ff0ec0805e0f435 /drivers
parent1fa73be6be65028a7543bba8f14474b42e064a1b (diff)
downloadlinux-b4dddb498c0feaff413b2a79c64e910021983775.tar.xz
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')
-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",