projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c23f9e
)
rpmsg: char: Remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Fri, 26 Aug 2022 07:19:54 +0000
(07:19 +0000)
committer
Mathieu Poirier
<mathieu.poirier@linaro.org>
Fri, 2 Sep 2022 19:25:47 +0000
(13:25 -0600)
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
patch
|
blob
|
history
diff --git
a/drivers/rpmsg/rpmsg_char.c
b/drivers/rpmsg/rpmsg_char.c
index 4f2189111494a4f8f8913a83db2a1a1cd3f1de80..0850ae34fb88567767c3da8f780736701cab261f 100644
(file)
--- a/
drivers/rpmsg/rpmsg_char.c
+++ b/
drivers/rpmsg/rpmsg_char.c
@@
-424,15
+424,12
@@
int rpmsg_chrdev_eptdev_create(struct rpmsg_device *rpdev, struct device *parent
struct rpmsg_channel_info chinfo)
{
struct rpmsg_eptdev *eptdev;
- int ret;
eptdev = rpmsg_chrdev_eptdev_alloc(rpdev, parent);
if (IS_ERR(eptdev))
return PTR_ERR(eptdev);
- ret = rpmsg_chrdev_eptdev_add(eptdev, chinfo);
-
- return ret;
+ return rpmsg_chrdev_eptdev_add(eptdev, chinfo);
}
EXPORT_SYMBOL(rpmsg_chrdev_eptdev_create);