]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: fsl-quadspi: cleanup wait_for_completion return handling
authorNicholas Mc Guire <hofrat@osadl.org>
Sun, 1 Feb 2015 11:15:46 +0000 (06:15 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 31 Mar 2015 01:08:04 +0000 (18:08 -0700)
commitfd3dab3dd3d10e6cf942a59acbd94e5d2dfac4ca
treecaf87f4379d4b9f5a9a3c45a0d5f1bba11bb28d5
parent8188a3e29e8ac1a529d884d8a67ba7a084584c0e
mtd: fsl-quadspi: cleanup wait_for_completion return 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 adding a additional appropriately typed variable.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Acked-by: Han Xu <han.xu@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/spi-nor/fsl-quadspi.c