Skip to content

Commit

Permalink
ksmbd: remove unused ksmbd_tree_conn_share function
Browse files Browse the repository at this point in the history
Remove unused ksmbd_tree_conn_share function.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
namjaejeon authored and Steve French committed Jun 26, 2023
1 parent 6995e2d commit 7bd9f08
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
11 changes: 0 additions & 11 deletions fs/smb/server/mgmt/tree_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,6 @@ struct ksmbd_tree_connect *ksmbd_tree_conn_lookup(struct ksmbd_session *sess,
return tcon;
}

struct ksmbd_share_config *ksmbd_tree_conn_share(struct ksmbd_session *sess,
unsigned int id)
{
struct ksmbd_tree_connect *tc;

tc = ksmbd_tree_conn_lookup(sess, id);
if (tc)
return tc->share_conf;
return NULL;
}

int ksmbd_tree_conn_session_logoff(struct ksmbd_session *sess)
{
int ret = 0;
Expand Down
3 changes: 0 additions & 3 deletions fs/smb/server/mgmt/tree_connect.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ int ksmbd_tree_conn_disconnect(struct ksmbd_session *sess,
struct ksmbd_tree_connect *ksmbd_tree_conn_lookup(struct ksmbd_session *sess,
unsigned int id);

struct ksmbd_share_config *ksmbd_tree_conn_share(struct ksmbd_session *sess,
unsigned int id);

int ksmbd_tree_conn_session_logoff(struct ksmbd_session *sess);

#endif /* __TREE_CONNECT_MANAGEMENT_H__ */

0 comments on commit 7bd9f08

Please sign in to comment.