mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
Remove unnecessary allocation
Reported-by: Benjamin Coddington <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
1 parent
02da2d7217
commit
64c59a3726
1 file changed
+2
-3
@@ -569,10 +569,9 @@ gss_svc_searchbyctx(struct cache_detail *cd, struct xdr_netobj *handle)
|
||||
struct rsc *found;
|
||||
|
||||
memset(&rsci, 0, sizeof(rsci));
|
||||
if (dup_to_netobj(&rsci.handle, handle->data, handle->len))
|
||||
return NULL;
|
||||
rsci.handle.data = handle->data;
|
||||
rsci.handle.len = handle->len;
|
||||
found = rsc_lookup(cd, &rsci);
|
||||
rsc_free(&rsci);
|
||||
if (!found)
|
||||
return NULL;
|
||||
if (cache_check(cd, &found->h, NULL))
|
||||
|
||||
Reference in new issue
Block a user