Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754763Ab1DZU1h (ORCPT ); Tue, 26 Apr 2011 16:27:37 -0400 Received: from caiajhbdcahe.dreamhost.com ([208.97.132.74]:33667 "EHLO homiemail-a2.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752047Ab1DZU1g (ORCPT ); Tue, 26 Apr 2011 16:27:36 -0400 Subject: Re: [PATCH] linux/string.h: Introduce streq macro. From: Davidlohr Bueso To: Thiago Farina Cc: linux-kernel@vger.kernel.org, Steven Rostedt In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 26 Apr 2011 17:27:30 -0300 Message-ID: <1303849650.2232.41.camel@offworld> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 500 Lines: 16 On Tue, 2011-04-26 at 15:49 -0300, Thiago Farina wrote: > This macro is arguably more readable than its variants: > - !strcmp(a, b) > - strcmp(a, b) == 0 Anyone how is going to be reading kernel C code, can understand strcmp I think. Cheers, Davidlohr -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/