X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fbluetooth%2Fhidp%2Fcore.c;h=cdb9cfafd960b5c45730b933f0515e1b79f1bfd4;hb=9f04012c58a32756bbbd0239c4144e835048aa4d;hp=860444a7fc0f8e1e014f063721ecdc221a365304;hpb=84860bf0644d7c45afe7ddbd30731c3e3c371fae;p=powerpc.git diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 860444a7fc..cdb9cfafd9 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c @@ -660,9 +660,7 @@ unlink: failed: up_write(&hidp_session_sem); - if (session->input) - kfree(session->input); - + kfree(session->input); kfree(session); return err; }