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

Pete Zaitcev
2007-03-26T22:19:34Z

On Sun, 25 Mar 2007 11:27:33 +0400, Cyrill Gorcunov <gorcunov@gmail.com> 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