Patchwork [v2,1/6] mtd: mtd_nandecctest: remove unnecessary srandom32() call

login
register
mail settings
Submitter Akinobu Mita
Date Aug. 26, 2012, 12:06 p.m.
Message ID <1345982808-11440-2-git-send-email-akinobu.mita@gmail.com>
Download mbox | patch
Permalink /patch/180044/
State New
Headers show

Comments

Akinobu Mita - Aug. 26, 2012, 12:06 p.m.
It is unnecessary for this driver to call srandom32() in module_init.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
 drivers/mtd/tests/mtd_nandecctest.c | 2 --
 1 file changed, 2 deletions(-)

Patch

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);