|
@@ -334,7 +334,7 @@ static int datafab_determine_lun(struct us_data *us,
|
|
unsigned char *buf;
|
|
unsigned char *buf;
|
|
int count = 0, rc;
|
|
int count = 0, rc;
|
|
|
|
|
|
- if (!us || !info)
|
|
|
|
|
|
+ if (!info)
|
|
return USB_STOR_TRANSPORT_ERROR;
|
|
return USB_STOR_TRANSPORT_ERROR;
|
|
|
|
|
|
memcpy(command, scommand, 8);
|
|
memcpy(command, scommand, 8);
|
|
@@ -399,7 +399,7 @@ static int datafab_id_device(struct us_data *us,
|
|
unsigned char *reply;
|
|
unsigned char *reply;
|
|
int rc;
|
|
int rc;
|
|
|
|
|
|
- if (!us || !info)
|
|
|
|
|
|
+ if (!info)
|
|
return USB_STOR_TRANSPORT_ERROR;
|
|
return USB_STOR_TRANSPORT_ERROR;
|
|
|
|
|
|
if (info->lun == -1) {
|
|
if (info->lun == -1) {
|