]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
xen/blkfront: avoid compiler warning from missing cases
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 11 Mar 2010 23:10:40 +0000 (15:10 -0800)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:31:29 +0000 (18:31 +0200)
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>
drivers/block/xen-blkfront.c

index f47b0961fab13f25e7127efa79a72a51982d826c..9b440221755d7c169ac9a9871e4b330053fb6072 100644 (file)
@@ -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",