[PATCH 03/33] Staging: gdm724x: use match_string() helper

Andy Shevchenko andy.shevchenko at gmail.com
Mon May 21 21:35:04 UTC 2018


On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie <xieyisheng1 at huawei.com> wrote:
> match_string() returns the index of an array for a matching string,
> which can be used intead of open coded variant.


> +       ret = match_string((const char **)DRIVER_STRING,
> +                          TTY_MAX_COUNT, tty->driver->driver_name);

It looks like DRIVER_STRING should be converted to const * const.

-- 
With Best Regards,
Andy Shevchenko


More information about the devel mailing list