All of lore.kernel.org
 help / color / mirror / Atom feed
* linux-4.7-rc1/drivers/acpi/acpica/dbinput.c:484]: (style) Redundant condition
@ 2016-05-30  7:49 David Binderman
  0 siblings, 0 replies; only message in thread
From: David Binderman @ 2016-05-30  7:49 UTC (permalink / raw)
  To: robert.moore, lv.zheng, rafael.j.wysocki, lenb, linux-acpi, devel

Hello there,

linux-4.7-rc1/drivers/acpi/acpica/dbinput.c:484]: (style) Redundant
condition: If 'EXPR == ' '', the comparison 'EXPR' is always true.

Source code is

       while (*string && (*string == ' ')) {

Maybe better code

       while (*string == ' ') {


Regards

David Binderman

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

only message in thread, other threads:[~2016-05-30  7:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-30  7:49 linux-4.7-rc1/drivers/acpi/acpica/dbinput.c:484]: (style) Redundant condition David Binderman

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.