diff mbox

[22/40] SQUASHME pnfs-submit wave3 move BUG outside of switch

Message ID 1296855242-2592-23-git-send-email-andros@netapp.com (mailing list archive)
State RFC, archived
Headers show

Commit Message

Andy Adamson Feb. 4, 2011, 9:33 p.m. UTC
None
diff mbox

Patch

diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c
index 2b5a38e..d925af6 100644
--- a/fs/nfs/nfs4filelayout.c
+++ b/fs/nfs/nfs4filelayout.c
@@ -90,12 +90,9 @@  filelayout_get_dserver_offset(struct pnfs_layout_segment *lseg, loff_t offset)
 		do_div(tmp, stripe_width);
 		return tmp * unit + do_div(off, unit);
 	}
-	default:
-		BUG();
 	}
 
-	/* We should never get here... just to stop the gcc warning */
-	return 0;
+	BUG();
 }
 
 /*