From: Michael Krufky Date: Mon, 4 Jun 2007 19:00:45 +0000 (-0300) Subject: V4L/DVB (5743): Tuner: clean up kfree() after release X-Git-Tag: v2.6.23-rc1~493^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=052c50d91642f10e10c3c10837c89a7355881e76;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed