[folded-merged] rtc-max77686-add-missing-variable-initialization-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: rtc-max77686-add-missing-variable-initialization-fix
has been removed from the -mm tree.  Its filename was
     rtc-max77686-add-missing-variable-initialization-fix.patch

This patch was dropped because it was folded into rtc-max77686-add-maxim-77686-driver.patch

------------------------------------------------------
From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Subject: rtc-max77686-add-missing-variable-initialization-fix

simplify code

Cc: Chiwoong Byun <woong.byun@xxxxxxxxxxx>
Cc: Jingoo Han <jg1.han@xxxxxxxxxxx>
Cc: Jonghwa Lee <jonghwa3.lee@xxxxxxxxxxx>
Cc: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
Cc: Myugnjoo Ham <myungjoo.ham@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/rtc/rtc-max77686.c |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff -puN drivers/rtc/rtc-max77686.c~rtc-max77686-add-missing-variable-initialization-fix drivers/rtc/rtc-max77686.c
--- a/drivers/rtc/rtc-max77686.c~rtc-max77686-add-missing-variable-initialization-fix
+++ a/drivers/rtc/rtc-max77686.c
@@ -133,16 +133,12 @@ static int max77686_rtc_update(struct ma
 	enum MAX77686_RTC_OP op)
 {
 	int ret;
-	unsigned int data = 0;
+	unsigned int data;
 
-	switch (op) {
-	case MAX77686_RTC_WRITE:
+	if (op == MAX77686_RTC_WRITE)
 		data = 1 << RTC_UDR_SHIFT;
-		break;
-	case MAX77686_RTC_READ:
+	else
 		data = 1 << RTC_RBUDR_SHIFT;
-		break;
-	}
 
 	ret = regmap_update_bits(info->max77686->rtc_regmap,
 				 MAX77686_RTC_UPDATE0, data, data);
_

Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are

origin.patch
bugh-prevent-double-evaulation-of-in-build_bug_on-fix.patch
bugh-compilerh-introduce-compiletime_assert-build_bug_on_msg-checkpatch-fixes.patch
goldfish-framebuffer-driver-fix.patch
ocfs2-remove-kfree-redundant-null-checks.patch
scripts-pnmtologo-fix-for-plain-pbm-checkpatch-fixes.patch
sys_prctl-coding-style-cleanup.patch
backlight-add-lms501kf03-lcd-driver.patch
drivers-video-backlight-makefile-cleanup.patch
checkpatch-dont-emit-the-camelcase-warning-for-pagefoo.patch
rtc-max77686-add-maxim-77686-driver.patch
rtc-pcf8523-add-low-battery-voltage-support-fix.patch
rtc-add-rtc-driver-for-tps80031-tps80032-v2-fix.patch
rtc-add-support-for-spi-rtc-rx4581-checkpatch-fixes.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux