All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20090109005644.GH32403@ldl.fc.hp.com>

diff --git a/a/1.txt b/N1/1.txt
index b88e818..0700acc 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -113,14 +113,15 @@ index 0000000..2386da0
 +#define EFI_RTC_EPOCH		1998
 +
 +#define is_leap(year) \
-+	((year) % 4 = 0 && ((year) % 100 != 0 || (year) % 400 = 0))
++	((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
 +
 +struct efi_rtc {
 +	struct rtc_device *rtc;
 +	spinlock_t lock;
 +};
 +
-+static const unsigned short int __mon_yday[2][13] +{
++static const unsigned short int __mon_yday[2][13] =
++{
 +	/* Normal years.  */
 +	{ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },
 +	/* Leap years.  */
@@ -262,7 +263,7 @@ index 0000000..2386da0
 +
 +	printk(KERN_WARNING "write status is %d\n", (int)status);
 +
-+	return status = EFI_SUCCESS ? 0 : -EINVAL;
++	return status == EFI_SUCCESS ? 0 : -EINVAL;
 +}
 +
 +static int efi_read_time(struct device *dev, struct rtc_time *tm)
@@ -309,7 +310,7 @@ index 0000000..2386da0
 +
 +	unlock_kernel();
 +
-+	return status = EFI_SUCCESS ? 0 : -EINVAL;
++	return status == EFI_SUCCESS ? 0 : -EINVAL;
 +}
 +
 +static const struct rtc_class_ops efi_rtc_ops = {
diff --git a/a/content_digest b/N1/content_digest
index 0db1fb6..baf7d14 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,6 +1,6 @@
  "From\0dann frazier <dannf@hp.com>\0"
  "Subject\0[PATCH] add rtc platform driver for EFI\0"
- "Date\0Fri, 09 Jan 2009 00:56:45 +0000\0"
+ "Date\0Thu, 8 Jan 2009 17:56:45 -0700\0"
  "To\0rtc-linux@googlegroups.com"
  " linux-ia64@vger.kernel.org\0"
  "Cc\0linux-kernel@vger.kernel.org\0"
@@ -121,14 +121,15 @@
  "+#define EFI_RTC_EPOCH\t\t1998\n"
  "+\n"
  "+#define is_leap(year) \\\n"
- "+\t((year) % 4 = 0 && ((year) % 100 != 0 || (year) % 400 = 0))\n"
+ "+\t((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))\n"
  "+\n"
  "+struct efi_rtc {\n"
  "+\tstruct rtc_device *rtc;\n"
  "+\tspinlock_t lock;\n"
  "+};\n"
  "+\n"
- "+static const unsigned short int __mon_yday[2][13] +{\n"
+ "+static const unsigned short int __mon_yday[2][13] =\n"
+ "+{\n"
  "+\t/* Normal years.  */\n"
  "+\t{ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365 },\n"
  "+\t/* Leap years.  */\n"
@@ -270,7 +271,7 @@
  "+\n"
  "+\tprintk(KERN_WARNING \"write status is %d\\n\", (int)status);\n"
  "+\n"
- "+\treturn status = EFI_SUCCESS ? 0 : -EINVAL;\n"
+ "+\treturn status == EFI_SUCCESS ? 0 : -EINVAL;\n"
  "+}\n"
  "+\n"
  "+static int efi_read_time(struct device *dev, struct rtc_time *tm)\n"
@@ -317,7 +318,7 @@
  "+\n"
  "+\tunlock_kernel();\n"
  "+\n"
- "+\treturn status = EFI_SUCCESS ? 0 : -EINVAL;\n"
+ "+\treturn status == EFI_SUCCESS ? 0 : -EINVAL;\n"
  "+}\n"
  "+\n"
  "+static const struct rtc_class_ops efi_rtc_ops = {\n"
@@ -388,4 +389,4 @@
  "-- \n"
  1.5.6.5
 
-b024934cad2f3d309cac74a9e5990020d474771e87379a99147602e968d7d5d1
+e298f3a14c93f3a5d0d57327e6fcea0f1d89b47149d01aee68f54b71c2368975

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.