]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: char: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Fri, 26 Aug 2022 07:19:54 +0000 (07:19 +0000)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 2 Sep 2022 19:25:47 +0000 (13:25 -0600)
commitadbf17a3c4ce347bd74e0119f324d6263dbadccf
treee8920fc051cd0fa80bf01978d3dc53f76e2242c1
parentab10ff5e8831a0b67cd316b656c1de8c860c2d7c
rpmsg: char: Remove the unneeded result variable

Return the value rpmsg_chrdev_eptdev_add() directly instead of storing it
in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/20220826071954.252485-1-ye.xingchen@zte.com.cn
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/rpmsg/rpmsg_char.c