mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
RDMA/rtrs-srv: Fix error print in process_info_req()
rtrs_srv_change_state() returns bool (true on success) therefore there is no reason to print error when it fails as it always will be 0. Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com> Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com> Link: https://patch.msgid.link/20260107161517.56357-11-haris.iqbal@ionos.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
fc29063070
commit
88f2bf22d9
|
|
@ -883,7 +883,7 @@ static int process_info_req(struct rtrs_srv_con *con,
|
|||
get_device(&srv_path->srv->dev);
|
||||
err = rtrs_srv_change_state(srv_path, RTRS_SRV_CONNECTED);
|
||||
if (!err) {
|
||||
rtrs_err(s, "rtrs_srv_change_state(), err: %pe\n", ERR_PTR(err));
|
||||
rtrs_err(s, "rtrs_srv_change_state() failed\n");
|
||||
goto iu_free;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user