Author: simon Date: 2009-10-17 17:58:14 +0000 (Sat, 17 Oct 2009) New Revision: 1448
Modified: trunk/batman-adv-kernelland/device.c Log: remove warning when unregistering device as it won't be checked for newer kernels. Adjust style according to checkpatchs (2.6.30) recommendations
Modified: trunk/batman-adv-kernelland/device.c =================================================================== --- trunk/batman-adv-kernelland/device.c 2009-10-17 17:56:02 UTC (rev 1447) +++ trunk/batman-adv-kernelland/device.c 2009-10-17 17:58:14 UTC (rev 1448) @@ -79,8 +79,6 @@
void bat_device_destroy(void) { - int result = 0; - if (!Major) return;
@@ -88,15 +86,8 @@ class_destroy(batman_class);
/* Unregister the device */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23) - result = unregister_chrdev(Major, DRIVER_DEVICE); -#else unregister_chrdev(Major, DRIVER_DEVICE); -#endif
- if (result < 0) - debug_log(LOG_TYPE_WARN, "Unregistering the character device failed with %d\n", result); - Major = 0; }
@@ -266,8 +257,8 @@ ETH_ALEN);
send_raw_packet((unsigned char *)&icmp_packet, - sizeof(struct icmp_packet), - batman_if, orig_node->router->addr); + sizeof(struct icmp_packet), + batman_if, orig_node->router->addr);
spin_unlock(&orig_hash_lock); goto out;