linux-kernel-test/drivers/mtd
Nicholas Mc Guire e5860c18e6 mtd: pxa3xx_nand: cleanup wait_for_completion handling
return type of wait_for_completion_timeout is unsigned long not int, this
patch uses the return value of wait_for_completion_timeout in the condition
directly rather than assigning it to an incorrect type variable.

The variable used for handling the return of wait_for_cmpletion_timeout
was int but should be unsigned long, where it was not in use for
anything else and the return value in case of completion (>0) is not
used it was removed and wait_for_completion_timeout() used directly in
the if condition.

To make the timeout values a bit simpler to read and also handle all of
the corner cases correctly the declarations are moved to
msecs_to_jiffies().

The timeout declaration cleanup is just for readability

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
2015-03-30 18:30:30 -07:00
..
chips mtd: cfi: clean up some indenting 2015-03-30 18:01:04 -07:00
devices mtd: docg3: drop dead code 2015-03-11 15:21:19 -07:00
lpddr
maps mtd: maps: sa1100-flash: remove incorrect __exit markups 2015-03-30 17:50:40 -07:00
nand mtd: pxa3xx_nand: cleanup wait_for_completion handling 2015-03-30 18:30:30 -07:00
onenand mtd: onenand: drop dead code 2015-03-11 15:21:47 -07:00
spi-nor mtd: fsl-quadspi: cleanup wait_for_completion return handling 2015-03-30 18:08:04 -07:00
tests mtd: tests: fix more potential integer overflows 2015-03-11 15:21:47 -07:00
ubi UBI: block: Fix checking for NULL instead of IS_ERR() 2015-02-12 23:33:32 +01:00
afs.c
ar7part.c
bcm47xxpart.c mtd: bcm47xxpart: support SquashFS with an original magic 2015-01-07 12:24:23 -08:00
bcm63xxpart.c
cmdlinepart.c
ftl.c
inftlcore.c
inftlmount.c mtd: intflmount: fix off by one error in INFTL_dumpVUchains() 2014-11-05 13:19:21 -08:00
Kconfig mtd: update help of CONFIG_MTD_OF_PARTS 2014-11-05 01:17:56 -08:00
Makefile
mtd_blkdevs.c mtd: blkdevs: remove dead code 2015-03-11 15:21:48 -07:00
mtdblock_ro.c
mtdblock.c mtd: mtdblock: remove the needless mtdblks_lock 2015-01-07 12:51:56 -08:00
mtdchar.c fs: introduce f_op->mmap_capabilities for nommu mmap support 2015-01-20 14:02:58 -07:00
mtdconcat.c MTD updates for 3.20-rc1 2015-02-18 08:01:44 -08:00
mtdcore.c MTD updates for 3.20-rc1 2015-02-18 08:01:44 -08:00
mtdcore.h
mtdoops.c
mtdpart.c fs: introduce f_op->mmap_capabilities for nommu mmap support 2015-01-20 14:02:58 -07:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c mtd: nftl: reorganize operations in condition check 2015-01-09 15:26:29 -08:00
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c