X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_vfs_multi.c;h=27cc0c010d73b7ce6d934ad948fe6dae66eef21a;hp=67050d4e3d2c1f7dd7b88a946567968a203ee251;hb=e72372f93c862b499f586006cd30a5052fde38f8;hpb=bc76682d93955cfb33051beb503ad9f8a5450578;ds=sidebyside diff --git a/yaffs_vfs_multi.c b/yaffs_vfs_multi.c index 67050d4..27cc0c0 100644 --- a/yaffs_vfs_multi.c +++ b/yaffs_vfs_multi.c @@ -2713,15 +2713,11 @@ static struct super_block *yaffs_internal_read_super(int yaffs_version, context = kmalloc(sizeof(struct yaffs_linux_context), GFP_KERNEL); if (!dev || !context) { - if (dev) - kfree(dev); - if (context) - kfree(context); + kfree(dev); + kfree(context); dev = NULL; context = NULL; - } - if (!dev) { /* Deep shit could not allocate device structure */ yaffs_trace(YAFFS_TRACE_ALWAYS, "yaffs_read_super: Failed trying to allocate struct yaffs_dev."