From: akpm@linux-foundation.org Subject: + video-udlfb-use-null-instead-of-0.patch added to -mm tree Date: Wed, 22 May 2013 14:37:24 -0700 Message-ID: <519d3a94.o0X8XfBwA4uMU8Eg%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:41900 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754087Ab3EVVhZ (ORCPT ); Wed, 22 May 2013 17:37:25 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, sachin.kamat@linaro.org Subject: + video-udlfb-use-null-instead-of-0.patch added to -mm tree To: sachin.kamat@linaro.org From: akpm@linux-foundation.org Date: Wed, 22 May 2013 14:37:24 -0700 The patch titled Subject: drivers/video/udlfb.c: use NULL instead of 0 has been added to the -mm tree. Its filename is video-udlfb-use-null-instead-of-0.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sachin Kamat Subject: drivers/video/udlfb.c: use NULL instead of 0 Pointer variables should be initialized with NULL instead of 0. Signed-off-by: Sachin Kamat Signed-off-by: Andrew Morton --- drivers/video/udlfb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff -puN drivers/video/udlfb.c~video-udlfb-use-null-instead-of-0 drivers/video/udlfb.c --- a/drivers/video/udlfb.c~video-udlfb-use-null-instead-of-0 +++ a/drivers/video/udlfb.c @@ -434,10 +434,10 @@ static void dlfb_compress_hline( while ((pixel_end > pixel) && (cmd_buffer_end - MIN_RLX_CMD_BYTES > cmd)) { - uint8_t *raw_pixels_count_byte = 0; - uint8_t *cmd_pixels_count_byte = 0; - const uint16_t *raw_pixel_start = 0; - const uint16_t *cmd_pixel_start, *cmd_pixel_end = 0; + uint8_t *raw_pixels_count_byte = NULL; + uint8_t *cmd_pixels_count_byte = NULL; + const uint16_t *raw_pixel_start = NULL; + const uint16_t *cmd_pixel_start, *cmd_pixel_end = NULL; prefetchw((void *) cmd); /* pull in one cache line at least */ @@ -1588,7 +1588,7 @@ static int dlfb_usb_probe(struct usb_int const struct usb_device_id *id) { struct usb_device *usbdev; - struct dlfb_data *dev = 0; + struct dlfb_data *dev = NULL; int retval = -ENOMEM; /* usb initialization */ _ Patches currently in -mm which might be from sachin.kamat@linaro.org are origin.patch linux-next.patch video-smscufx-use-null-instead-of-0.patch video-udlfb-use-null-instead-of-0.patch video-udlfb-make-local-symbol-static.patch video-imxfb-make-local-symbols-static.patch drivers-rtc-rtc-v3020c-remove-redundant-goto.patch drivers-rtc-interfacec-fix-checkpatch-errors.patch drivers-rtc-rtc-at32ap700xc-fix-checkpatch-error.patch drivers-rtc-rtc-at91rm9200c-include-linux-uaccessh.patch drivers-rtc-rtc-cmosc-fix-whitespace-related-errors.patch drivers-rtc-rtc-davincic-fix-whitespace-warning.patch drivers-rtc-rtc-ds1305c-add-missing-braces-around-sizeof.patch drivers-rtc-rtc-ds1374c-fix-spacing-related-issues.patch drivers-rtc-rtc-ds1511c-fix-issues-related-to-spaces-and-braces.patch drivers-rtc-rtc-ds3234c-fix-whitespace-issue.patch drivers-rtc-rtc-fm3130c-fix-whitespace-related-issue.patch drivers-rtc-rtc-m41t80c-fix-spacing-related-issue.patch drivers-rtc-rtc-max6902c-remove-unwanted-spaces.patch drivers-rtc-rtc-max77686c-remove-space-before-semicolon.patch drivers-rtc-rtc-max8997c-remove-space-before-semicolon.patch drivers-rtc-rtc-mpc5121c-remove-space-before-tab.patch drivers-rtc-rtc-msm6242c-use-pr_warn.patch drivers-rtc-rtc-mxcc-fix-checkpatch-error.patch drivers-rtc-rtc-omapc-include-linux-ioh-instead-of-asm-ioh.patch drivers-rtc-rtc-pcf2123c-remove-space-before-tabs.patch drivers-rtc-rtc-pcf8583c-move-assignment-outside-if-condition.patch drivers-rtc-rtc-rs5c313c-include-linux-ioh-instead-of-asm-ioh.patch drivers-rtc-rtc-rs5c313c-fix-spacing-related-issues.patch drivers-rtc-rtc-v3020c-fix-spacing-issues.patch drivers-rtc-rtc-vr41xxc-fix-spacing-issues.patch drivers-rtc-rtc-x1205c-fix-checkpatch-issues.patch drivers-rtc-rtc-m48t86c-remove-empty-function.patch drivers-rtc-rtc-tilec-remove-empty-function.patch drivers-rtc-rtc-nuc900c-remove-empty-function.patch drivers-rtc-rtc-msm6242c-remove-empty-function.patch drivers-rtc-rtc-max8998c-remove-empty-function.patch drivers-rtc-rtc-max8925c-remove-empty-function.patch drivers-rtc-rtc-ls1xc-remove-empty-function.patch drivers-rtc-rtc-lp8788c-remove-empty-function.patch drivers-rtc-rtc-ds1302c-remove-empty-function.patch drivers-rtc-rtc-dm355evmc-remove-empty-function.patch drivers-rtc-rtc-da9055c-remove-empty-function.patch drivers-rtc-rtc-da9052c-remove-empty-function.patch drivers-rtc-rtc-bq4802c-remove-empty-function.patch drivers-rtc-rtc-au1xxxc-remove-empty-function.patch drivers-rtc-rtc-ab3100c-remove-empty-function.patch