diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-06-04 15:00:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-07-18 13:23:56 -0400 |
commit | 052c50d91642f10e10c3c10837c89a7355881e76 (patch) | |
tree | fb43a6c5a0cde3e4b72e8bbf385b510409a161a9 /.gitignore | |
parent | 024cf53089f7c8e58934407f07ca2a7b5bed3b06 (diff) |
V4L/DVB (5743): Tuner: clean up kfree() after release
Although it is safe to kfree(NULL), We only need to kfree(priv)
if the release callback is undefined. As it stands now, there
is some redundancy in the operation of releasing the priv data
structures. This patch will call kfree(priv) and set priv to NULL,
if the release callback isnt defined. Otherwise, let the release
callback handle this itself.
Thanks to Mauro Carvalho Chehab for suggesting this.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions