cifs: replace code with free_rsp_buf()
The functionality provided by free_rsp_buf() is duplicated in a number of places. Replace these instances with a call to free_rsp_buf(). Signed-off-by: Sachin Prabhu <sprabhu@redhat.com> Reviewed-by: Shirish Pargaonkar <spargaonkar@suse.com> Signed-off-by: Steve French <smfrench@gmail.com>
This commit is contained in:

committed by
Steve French

parent
6f0928036b
commit
6d81ed1ec2
@@ -309,16 +309,6 @@ small_smb2_init(__le16 smb2_command, struct cifs_tcon *tcon,
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void
|
||||
free_rsp_buf(int resp_buftype, void *rsp)
|
||||
{
|
||||
if (resp_buftype == CIFS_SMALL_BUFFER)
|
||||
cifs_small_buf_release(rsp);
|
||||
else if (resp_buftype == CIFS_LARGE_BUFFER)
|
||||
cifs_buf_release(rsp);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
* SMB2 Worker functions follow:
|
||||
|
Reference in New Issue
Block a user