Message ID | 20210712123912.10672-1-arnaud.pouliquen@foss.st.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | [v2] rpmsg: Fix rpmsg_create_ept return when RPMSG config is not defined | expand |
diff --git a/include/linux/rpmsg.h b/include/linux/rpmsg.h index d97dcd049f18..a8dcf8a9ae88 100644 --- a/include/linux/rpmsg.h +++ b/include/linux/rpmsg.h @@ -231,7 +231,7 @@ static inline struct rpmsg_endpoint *rpmsg_create_ept(struct rpmsg_device *rpdev /* This shouldn't be possible */ WARN_ON(1); - return ERR_PTR(-ENXIO); + return NULL; } static inline int rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len)