diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-11 08:17:02 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-08-09 17:48:24 +0200 |
commit | 9b037a6a7a16bf580906e3197a54a366ac26060c (patch) | |
tree | be08341de622d83c58e1fe6397348cbeb8d5b927 /src/gsm/gsm_utils.c | |
parent | 73fa6427aa5df95728eab41ec1b24f04a0dcf51e (diff) |
lapd: Remove the double NULL check idiom with msgb_free
if (ptr)
msgb_free(ptr)
extends to:
if (ptr)
talloc_free(ptr)
And according to the talloc documentation a talloc_free(NULL)
will not crash: "... Likewise, if "ptr" is NULL, then the function
will make no modifications and returns -1."
Diffstat (limited to 'src/gsm/gsm_utils.c')
0 files changed, 0 insertions, 0 deletions