mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ide: hpt366: convert to use match_string() helper
The new helper returns index of the mathing string in an array. We would use it here. Signed-off-by: Andy Shevchenko <[email protected]> Cc: "David S. Miller" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
908913bdbd
commit
9adb9254f4
1 changed files with 2 additions and 7 deletions
|
|
@ -531,14 +531,9 @@ static const struct hpt_info hpt371n = {
|
|||
.timings = &hpt37x_timings
|
||||
};
|
||||
|
||||
static int check_in_drive_list(ide_drive_t *drive, const char **list)
|
||||
static bool check_in_drive_list(ide_drive_t *drive, const char **list)
|
||||
{
|
||||
char *m = (char *)&drive->id[ATA_ID_PROD];
|
||||
|
||||
while (*list)
|
||||
if (!strcmp(*list++, m))
|
||||
return 1;
|
||||
return 0;
|
||||
return match_string(list, -1, (char *)&drive->id[ATA_ID_PROD]) >= 0;
|
||||
}
|
||||
|
||||
static struct hpt_info *hpt3xx_get_info(struct device *dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue