summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/gc.c
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2012-12-01 10:56:13 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-11 13:43:44 +0900
commit1042d60f917d78ef1a6eaea297a1020484d4bf74 (patch)
treed10132e127f0195635d5913bbbc8e107129e00b6 /fs/f2fs/gc.c
parent1fa95b0b6798164a31c1048efdf62b71038eb3d5 (diff)
downloadtalos-op-linux-1042d60f917d78ef1a6eaea297a1020484d4bf74.tar.gz
talos-op-linux-1042d60f917d78ef1a6eaea297a1020484d4bf74.zip
f2fs: remove unneeded initialization
No need to initialize "struct f2fs_gc_kthread *gc_th = NULL", as gc_th = NULL, will be taken care by the return values of kmalloc(). And fix codes in other places. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Diffstat (limited to 'fs/f2fs/gc.c')
-rw-r--r--fs/f2fs/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/gc.c b/fs/f2fs/gc.c
index 3271be42c0b6..644aa3808273 100644
--- a/fs/f2fs/gc.c
+++ b/fs/f2fs/gc.c
@@ -89,7 +89,7 @@ static int gc_thread_func(void *data)
int start_gc_thread(struct f2fs_sb_info *sbi)
{
- struct f2fs_gc_kthread *gc_th = NULL;
+ struct f2fs_gc_kthread *gc_th;
gc_th = kmalloc(sizeof(struct f2fs_gc_kthread), GFP_KERNEL);
if (!gc_th)
OpenPOWER on IntegriCloud