Received from Mark Salyzyn:
Basically cleanup, nothing here will have an affect. Adjusting some
error codes, removing superfluous definitions and code fragments.
Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
fsa_dev_ptr = dev->fsa_dev;
if (!fsa_dev_ptr)
- return -ENODEV;
+ return -EBUSY;
if (copy_from_user(&qd, arg, sizeof (struct aac_query_disk)))
return -EFAULT;
if (qd.cnum == -1)
struct fsa_dev_info *fsa_dev_ptr;
fsa_dev_ptr = dev->fsa_dev;
+ if (!fsa_dev_ptr)
+ return -EBUSY;
if (copy_from_user(&dd, arg, sizeof (struct aac_delete_disk)))
return -EFAULT;
fsa_dev_ptr = dev->fsa_dev;
if (!fsa_dev_ptr)
- return -ENODEV;
- if (!fsa_dev_ptr)
- return -ENODEV;
+ return -EBUSY;
if (copy_from_user(&dd, arg, sizeof (struct aac_delete_disk)))
return -EFAULT;
__le32 count; /* sizeof(((struct aac_get_name_resp *)NULL)->data) */
};
-#define CT_OK 218
struct aac_get_name_resp {
__le32 dummy0;
__le32 dummy1;
dprintk((KERN_DEBUG " fib being sent=%p\n",fibptr));
if (!dev->queues)
- return -ENODEV;
+ return -EBUSY;
q = &dev->queues->queue[AdapNormCmdQueue];
if(wait)