@@ -1227,22 +1227,15 @@ static bool NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd)
1227
1227
return ret ;
1228
1228
}
1229
1229
1230
- /*
1231
- * Function : int NCR5380_transfer_pio (struct Scsi_Host *instance,
1232
- * unsigned char *phase, int *count, unsigned char **data)
1233
- *
1234
- * Purpose : transfers data in given phase using polled I/O
1235
- *
1236
- * Inputs : instance - instance of driver, *phase - pointer to
1237
- * what phase is expected, *count - pointer to number of
1238
- * bytes to transfer, **data - pointer to data pointer,
1239
- * can_sleep - 1 or 0 when sleeping is permitted or not, respectively.
1240
- *
1241
- * Returns : -1 when different phase is entered without transferring
1242
- * maximum number of bytes, 0 if all bytes are transferred or exit
1243
- * is in same phase.
1230
+ /**
1231
+ * NCR5380_transfer_pio() - transfers data in given phase using polled I/O
1232
+ * @instance: instance of driver
1233
+ * @phase: pointer to what phase is expected
1234
+ * @count: pointer to number of bytes to transfer
1235
+ * @data: pointer to data pointer
1236
+ * @can_sleep: 1 or 0 when sleeping is permitted or not, respectively
1244
1237
*
1245
- * Also, *phase, *count, *data are modified in place.
1238
+ * Returns: void. *phase, *count, *data are modified in place.
1246
1239
*/
1247
1240
1248
1241
/*
@@ -1251,9 +1244,9 @@ static bool NCR5380_select(struct Scsi_Host *instance, struct scsi_cmnd *cmd)
1251
1244
* counts, we will always do a pseudo DMA or DMA transfer.
1252
1245
*/
1253
1246
1254
- static int NCR5380_transfer_pio (struct Scsi_Host * instance ,
1255
- unsigned char * phase , int * count ,
1256
- unsigned char * * data , unsigned int can_sleep )
1247
+ static void NCR5380_transfer_pio (struct Scsi_Host * instance ,
1248
+ unsigned char * phase , int * count ,
1249
+ unsigned char * * data , unsigned int can_sleep )
1257
1250
{
1258
1251
struct NCR5380_hostdata * hostdata = shost_priv (instance );
1259
1252
unsigned char p = * phase , tmp ;
@@ -1358,11 +1351,6 @@ static int NCR5380_transfer_pio(struct Scsi_Host *instance,
1358
1351
* phase = tmp & PHASE_MASK ;
1359
1352
else
1360
1353
* phase = PHASE_UNKNOWN ;
1361
-
1362
- if (!c || (* phase == p ))
1363
- return 0 ;
1364
- else
1365
- return -1 ;
1366
1354
}
1367
1355
1368
1356
/**
0 commit comments