Skip to content

Commit

Permalink
xen/blkfront: avoid compiler warning from missing cases
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge authored and Jens Axboe committed Aug 7, 2010
1 parent 1fa73be commit b4dddb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b4dddb4

Please sign in to comment.