Re: [PATCH 1/3] spi: Re-do the returning value of rspi_dma_check_then_transfer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 4/28/2015 8:55 AM, Cao Minh Hiep wrote:

From: Hiep Cao Minh <cm-hiep@xxxxxxxxxxx>

To reduce indentation and complex of code, insteeds of returning zero,

   Complexity?

the function rspi_dma_check_then_transfer should be returned

   Returning? Or perhaps just "return", without "be"?

rspi_dma_transfer directly after checking error.

Signed-off-by: Hiep Cao Minh <cm-hiep@xxxxxxxxxxx>
---
  drivers/spi/spi-rspi.c | 13 +++++--------
  1 file changed, 5 insertions(+), 8 deletions(-)

[...]

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux