mtd: mtd_nandecctest: remove unnecessary srandom32() call

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Sep 29 10:59:11 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0ce0060f103db02edcaa000bbd31cdebcfaa115c
Commit:     0ce0060f103db02edcaa000bbd31cdebcfaa115c
Parent:     58d864ed208dd2495314fde104b4615fa58e18c8
Author:     Akinobu Mita <akinobu.mita at gmail.com>
AuthorDate: Sun Aug 26 21:06:43 2012 +0900
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sat Sep 29 15:13:05 2012 +0100

    mtd: mtd_nandecctest: remove unnecessary srandom32() call
    
    It is unnecessary for this driver to call srandom32() in module_init.
    
    Signed-off-by: Akinobu Mita <akinobu.mita at gmail.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/tests/mtd_nandecctest.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/tests/mtd_nandecctest.c b/drivers/mtd/tests/mtd_nandecctest.c
index 70d6d7d..4d7b171 100644
--- a/drivers/mtd/tests/mtd_nandecctest.c
+++ b/drivers/mtd/tests/mtd_nandecctest.c
@@ -66,8 +66,6 @@ static int nand_ecc_test(const size_t size)
 
 static int __init ecc_test_init(void)
 {
-	srandom32(jiffies);
-
 	nand_ecc_test(256);
 	nand_ecc_test(512);
 



More information about the linux-mtd-cvs mailing list