All of lore.kernel.org
 help / color / mirror / Atom feed
* + ide-hpt366-convert-to-use-match_string-helper.patch added to -mm tree
@ 2016-02-02  6:10 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-02-02  6:10 UTC (permalink / raw)
  To: andriy.shevchenko, davem, mm-commits


The patch titled
     Subject: ide: hpt366: convert to use match_string() helper
has been added to the -mm tree.  Its filename is
     ide-hpt366-convert-to-use-match_string-helper.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/ide-hpt366-convert-to-use-match_string-helper.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/ide-hpt366-convert-to-use-match_string-helper.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: 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 <andriy.shevchenko@linux.intel.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/ide/hpt366.c |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff -puN drivers/ide/hpt366.c~ide-hpt366-convert-to-use-match_string-helper drivers/ide/hpt366.c
--- a/drivers/ide/hpt366.c~ide-hpt366-convert-to-use-match_string-helper
+++ a/drivers/ide/hpt366.c
@@ -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];

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-02  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-02  6:10 + ide-hpt366-convert-to-use-match_string-helper.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.