[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081209205949.4c40ebee@lxorguk.ukuu.org.uk>
Date: Tue, 9 Dec 2008 20:59:49 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Jiri Slaby <jirislaby@...il.com>
Cc: Jeff Garzik <jeff@...zik.org>, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org, Jiri Slaby <jirislaby@...il.com>,
Jeff Garzik <jgarzik@...hat.com>,
Alexandru Romanescu <a_romanescu@...oo.co.uk>,
Tejun Heo <tj@...nel.org>
Subject: Re: [PATCH 1/2] DMI: add dmi_match
> +static inline bool dmi_match(enum dmi_field f, const char *str)
> +{
> + const char *info = dmi_get_system_info(f);
> +
> + if (info == NULL || str == NULL)
> + return info == str;
> +
> + return !strcmp(info, str);
Not sure it is worth inlining but its definitely better this way
ACK
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists