Re: [PATCH] USB Elan FTDI: check for driver registration status

From: Pete Zaitcev
Date: Mon Mar 26 2007 - 18:19:58 EST


On Sun, 25 Mar 2007 11:27:33 +0400, Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:

> This patch adds checking of driver registration status
> and if it fails release allocated resources.

> + if (status_queue) {
> + destroy_workqueue(status_queue);
> + status_queue = NULL;
> + }
> + if (command_queue) {
> + destroy_workqueue(command_queue);
> + command_queue = NULL;
> + }
> + if (respond_queue) {
> + destroy_workqueue(respond_queue);
> + respond_queue = NULL;
> + }
> + return result;

I hate this style with passion, but I don't have cycles to argue.
So, whatever works for you and Greg is fine with me.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/