Staging: media: remove useless dev_info to avoid null ptr dereference

Context is used in dev_info after it has been freed.
This patch fix that issue by removing the dev_info itself,
for msg doesn't look much necessary.

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Haneen Mohammed 2015-03-22 03:02:02 +03:00 committed by Greg Kroah-Hartman
parent a51bab6d42
commit be546c6cd0

View File

@ -170,10 +170,6 @@ static void delete_context(struct sasem_context *context)
kfree(context->driver->rbuf);
kfree(context->driver);
kfree(context);
if (debug)
dev_info(&context->dev->dev, "%s: context deleted\n",
__func__);
}
static void deregister_from_lirc(struct sasem_context *context)