From patchwork Wed Jul 25 05:20:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baodong Chen X-Patchwork-Id: 1235441 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 839C03FDFB for ; Wed, 25 Jul 2012 05:21:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220Ab2GYFVr (ORCPT ); Wed, 25 Jul 2012 01:21:47 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:51485 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751102Ab2GYFVp (ORCPT ); Wed, 25 Jul 2012 01:21:45 -0400 Received: by pbbrp8 with SMTP id rp8so818317pbb.19 for ; Tue, 24 Jul 2012 22:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=RQwvdMwErAyBM+IHy/u4TzQ+StEpchaT1UO7DbrHyYM=; b=gzzdMtRvqA5vsycLdGuU9JyvcG7tZFg/KtTI1Mn5wHiBmmz7zWIJtRAXOr+Q/wPfwQ 8LIzOJ6OTeFcNKkeNloNqk+ua6GKwXWSkOvclQcSePD09fAz5JuD4LYxLvsslOW7P/7w bklg3BeuoO/nkh4ozXta6bYC4BlM1+8WZRtGuRxOhaTHMNecSazy8RD/gJ+3/FopkF+G mo3ckahmzeFfGI8nLQ9m+fZVr+DYHi306KwPZhLLmb0ygB7E19fN5+p75QivYa1sNxkF U4PIaugq92QhydYclbsX8EkcHJr7qhQ87GCB/rD8N3vxASSvHQy3DjmS4XZPJqLlg6Ev zdIA== Received: by 10.68.236.67 with SMTP id us3mr1759306pbc.80.1343193704793; Tue, 24 Jul 2012 22:21:44 -0700 (PDT) Received: from localhost ([183.45.56.26]) by mx.google.com with ESMTPS id ka5sm13616951pbb.37.2012.07.24.22.21.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jul 2012 22:21:43 -0700 (PDT) From: Baodong Chen To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Baodong Chen Subject: [PATCH] fixed a macro coding style issue Date: Wed, 25 Jul 2012 13:20:56 +0800 Message-Id: <1343193656-2643-1-git-send-email-chenbdchenbd@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Fixed a coding style issue in driver/input/input.c Signed-off-by: Baodong Chen --- drivers/input/input.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 8921c61..c96e983 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -845,11 +845,13 @@ int input_set_keycode(struct input_dev *dev, EXPORT_SYMBOL(input_set_keycode); #define MATCH_BIT(bit, max) \ + do { \ for (i = 0; i < BITS_TO_LONGS(max); i++) \ if ((id->bit[i] & dev->bit[i]) != id->bit[i]) \ break; \ - if (i != BITS_TO_LONGS(max)) \ - continue; + if (i != BITS_TO_LONGS(max)) \ + continue; \ + } while (0) static const struct input_device_id *input_match_device(struct input_handler *handler, struct input_dev *dev)