+ add-new-generic-hw-rng-core-cleanups.patch added to -mm tree

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

 



The patch titled

     From: Michael Buesch <mb@xxxxxxxxx>

has been added to the -mm tree.  Its filename is

     add-new-generic-hw-rng-core-cleanups.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this



Cleanup some nonsense and codingstyle related stuff.

Signed-off-by: Michael Buesch <mb@xxxxxxxxx>
Index: hwrng.fixes/drivers/char/hw_random/core.c
===================================================================
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/hw_random/core.c |   20 ++++++--------------
 1 files changed, 6 insertions(+), 14 deletions(-)

diff -puN drivers/char/hw_random/core.c~add-new-generic-hw-rng-core-cleanups drivers/char/hw_random/core.c
--- devel/drivers/char/hw_random/core.c~add-new-generic-hw-rng-core-cleanups	2006-05-18 00:46:17.000000000 -0700
+++ devel-akpm/drivers/char/hw_random/core.c	2006-05-18 00:46:17.000000000 -0700
@@ -43,8 +43,8 @@
 
 
 #define RNG_MODULE_NAME		"hw_random"
-#define PFX RNG_MODULE_NAME	": "
-#define RNG_MISCDEV_MINOR		183 /* official */
+#define PFX			RNG_MODULE_NAME ": "
+#define RNG_MISCDEV_MINOR	183 /* official */
 
 
 static struct hwrng *current_rng;
@@ -52,31 +52,27 @@ static LIST_HEAD(rng_list);
 static DEFINE_MUTEX(rng_mutex);
 
 
-static inline
-int hwrng_init(struct hwrng *rng)
+static inline int hwrng_init(struct hwrng *rng)
 {
 	if (!rng->init)
 		return 0;
 	return rng->init(rng);
 }
 
-static inline
-void hwrng_cleanup(struct hwrng *rng)
+static inline void hwrng_cleanup(struct hwrng *rng)
 {
 	if (rng && rng->cleanup)
 		rng->cleanup(rng);
 }
 
-static inline
-int hwrng_data_present(struct hwrng *rng)
+static inline int hwrng_data_present(struct hwrng *rng)
 {
 	if (!rng->data_present)
 		return 1;
 	return rng->data_present(rng);
 }
 
-static inline
-int hwrng_data_read(struct hwrng *rng, u32 *data)
+static inline int hwrng_data_read(struct hwrng *rng, u32 *data)
 {
 	return rng->data_read(rng, data);
 }
@@ -174,9 +170,6 @@ static ssize_t hwrng_attr_current_store(
 	int err;
 	struct hwrng *rng;
 
-	if (!capable(CAP_SYS_ADMIN))
-		return -EPERM;
-
 	err = mutex_lock_interruptible(&rng_mutex);
 	if (err)
 		return -ERESTARTSYS;
@@ -359,6 +352,5 @@ void hwrng_unregister(struct hwrng *rng)
 EXPORT_SYMBOL_GPL(hwrng_unregister);
 
 
-MODULE_AUTHOR("The Linux Kernel team");
 MODULE_DESCRIPTION("H/W Random Number Generator (RNG) driver");
 MODULE_LICENSE("GPL");
_

Patches currently in -mm which might be from mb@xxxxxxxxx are

git-netdev-all.patch
remove-old-hw-rng-support.patch
add-new-generic-hw-rng-core.patch
add-new-generic-hw-rng-core-cleanups.patch
add-new-generic-hw-rng-core-hw_random-core-rewrite-chrdev-read-method.patch
add-new-generic-hw-rng-core-maintainers.patch
add-intel-hw-rng-driver.patch
add-intel-hw-rng-driver-cleanups.patch
add-amd-hw-rng-driver.patch
add-geode-hw-rng-driver.patch
add-geode-hw-rng-driver-cleanups.patch
add-via-hw-rng-driver.patch
add-via-hw-rng-driver-cleanups.patch
add-ixp4xx-hw-rng-driver.patch
add-ti-omap-cpu-family-hw-rng-driver.patch
add-bcm43xx-hw-rng-support.patch
capi-crash--race-condition.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