mmc: vub300: Use common code in __download_offload_pseudocode()
commit2d1d31dda766b146bbd77db5e4e1534f64c92c2b
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 27 Oct 2017 19:21:40 +0000 (27 21:21 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 2 Nov 2017 14:20:29 +0000 (2 15:20 +0100)
tree288c8398041cf400cd06017b4312623a8f3926c1
parent7f8e446b032bd6bbcec7c2f068d0a4f2d5929249
mmc: vub300: Use common code in __download_offload_pseudocode()

Add a jump target so that a specific string copy operation is stored
only once at the end of this function implementation.
Replace two calls of the function "strncpy" by goto statements.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/vub300.c