Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753681Ab3HBF5R (ORCPT ); Fri, 2 Aug 2013 01:57:17 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:35358 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751569Ab3HBF5P (ORCPT ); Fri, 2 Aug 2013 01:57:15 -0400 X-AuditID: cbfee691-b7fef6d000002d62-a6-51fb4a3aa12f From: Jingoo Han To: "'Sachin Kamat'" Cc: "'Samuel Ortiz'" , "'Lee Jones'" , linux-kernel@vger.kernel.org, Jingoo Han References: <000601ce8f44$299805e0$7cc811a0$@samsung.com> In-reply-to: Subject: Re: [PATCH] mfd: menelaus: use NULL instead of 0 Date: Fri, 02 Aug 2013 14:57:14 +0900 Message-id: <000701ce8f45$22f32ac0$68d98040$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQJkz4b3laB2zl88rAS1qy3uOAX9NANApZT8mDrlfDA= Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrIIsWRmVeSWpSXmKPExsVy+t8zA10rr9+BBh23ZS0uL7zEanH/61FG i8u75rBZnPzTy2hxupvVgdXjzrU9bB7zTgZ69G1ZxejxeZNcAEsUl01Kak5mWWqRvl0CV8aO lU2MBWuZK9Y/aWFvYFzB1MXIySEhYCJx/uxGZghbTOLCvfVsXYxcHEICyxglXj1awtjFyAFW 1PI6GSK+iFGi7dFPRgjnF6PEl65OsG42ATWJL18Os4PYIgI6Eit2rWUCKWIWmMAoMefNZqiO BkaJlzvfs4GM5RQIllh7nBekQVjAUmJ29yKwk1gEVCWebH3LAmLzAsU/dHcwQtiCEj8m3wOL MwtoSazfeZwJwpaX2LzmLdQLChI7zr5mhDjCSuL5rKfMEDUiEvtevGOEqLnELrF2VjXELgGJ b5MPsUB8KSux6QDUGEmJgytusABdPgvJ5llINs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p2ampBahHMFiYOTqkGxjkN+6V1 OXbvEImaXZmWN0dF69/+/nltz3IlTn24LPHSrK7NutnJp37q/kfX2+2/9vjvm/qrqekC19cK 48OqJ9/wnsnld7nj7T+zN6TVPvpR2VHfsw8OGht+yNKXklx+90b7jNNrJdez77/zdPo/Lwu+ I4nTTstxiq8r/OpRY/JVdcFUnZWOMUosxRmJhlrMRcWJAEHIILhCAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 653 Lines: 26 On Friday, August 02, 2013 2:53 PM, Sachin Kamat wrote: > On 2 August 2013 11:20, Jingoo Han wrote: [...] > > > > mutex_lock(&the_menelaus->lock); > > - if (vtg == 0) > > + if (vtg == NULL) > > Instead you could just make this: > if (!vtg) Thank you for your comment. :) It looks simpler. So, I will use it as you guide. Best regards, Jingoo Han -- 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/