aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2010-03-11 18:10:40 -0500
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 12:31:29 -0400
commitb4dddb498c0feaff413b2a79c64e910021983775 (patch)
tree9db2959caadbf22f8bd7de160ff0ec0805e0f435 /drivers/block
parent1fa73be6be65028a7543bba8f14474b42e064a1b (diff)
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')
-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)
947 /* fall through */ 947 /* fall through */
948 case BLKIF_STATE_SUSPENDED: 948 case BLKIF_STATE_SUSPENDED:
949 return; 949 return;
950
951 default:
952 break;
950 } 953 }
951 954
952 dev_dbg(&info->xbdev->dev, "%s:%s.\n", 955 dev_dbg(&info->xbdev->dev, "%s:%s.\n",