浏览代码

UBI: Fastmap: Remove else after return.

checkpatch.pl complains:
WARNING: else is not generally useful after a break or return

Signed-off-by: Richard Weinberger <richard@nod.at>
Richard Weinberger 10 年之前
父节点
当前提交
e1bc37ceaf
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/mtd/ubi/fastmap-wl.c

+ 3 - 3
drivers/mtd/ubi/fastmap-wl.c

@@ -260,10 +260,10 @@ static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
 			schedule_work(&ubi->fm_work);
 			schedule_work(&ubi->fm_work);
 		}
 		}
 		return NULL;
 		return NULL;
-	} else {
-		pnum = pool->pebs[pool->used++];
-		return ubi->lookuptbl[pnum];
 	}
 	}
+
+	pnum = pool->pebs[pool->used++];
+	return ubi->lookuptbl[pnum];
 }
 }
 
 
 /**
 /**