Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ocfs2: remove set but not used variable 'lastzero'

lastzero is not used after setting its value. It is safe to remove the
unused variable.

Link: http://lkml.kernel.org/r/1540296942-24533-1-git-send-email-zhongjiang@huawei.com
Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

zhong jiang and committed by
Linus Torvalds
dec5b0d4 cb6a8fd7

+1 -2
+1 -2
fs/ocfs2/localalloc.c
··· 835 835 u32 *numbits, 836 836 struct ocfs2_alloc_reservation *resv) 837 837 { 838 - int numfound = 0, bitoff, left, startoff, lastzero; 838 + int numfound = 0, bitoff, left, startoff; 839 839 int local_resv = 0; 840 840 struct ocfs2_alloc_reservation r; 841 841 void *bitmap = NULL; ··· 873 873 bitmap = OCFS2_LOCAL_ALLOC(alloc)->la_bitmap; 874 874 875 875 numfound = bitoff = startoff = 0; 876 - lastzero = -1; 877 876 left = le32_to_cpu(alloc->id1.bitmap1.i_total); 878 877 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { 879 878 if (bitoff == left) {