Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1dc165f authored by Mohammed Javid's avatar Mohammed Javid Committed by Gerrit - the friendly Code Review server
Browse files

net/embms-kernel : Fix for embms-kernel compilation issues



Resolved warning treated as errors. Removed unused variables
and corrected return type of ioctl function

Change-Id: I6d1e4ed0f7ac8a3459aeabd2e17eef6a2d049bad
Acked-by: default avatarAnvitha Nandigam <anandiga@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 6bf4cf1b
Loading
Loading
Loading
Loading
+4 −23
Original line number Diff line number Diff line
@@ -62,7 +62,6 @@ static int handle_multicast_stream(struct sk_buff *skb)
{
	struct iphdr *iph;
	struct udphdr *udph;
	struct in_device *in_dev;
	unsigned char *tmp_ptr = NULL;
	struct sk_buff *skb_new = NULL;
	struct sk_buff *skb_cpy = NULL;
@@ -396,12 +395,9 @@ static void print_tmgi_to_client_table(void)

int delete_tmgi_entry_from_table(char *buffer)
{
	int i;
	struct tmgi_to_clnt_info_update *info_update;
	char message_buffer[sizeof(struct tmgi_to_clnt_info_update)];
	struct clnt_info *temp_client = NULL;
	struct tmgi_to_clnt_info *temp_tmgi = NULL;
	struct list_head *tmgi_entry_ptr, *prev_tmgi_entry_ptr;
	struct list_head *clnt_ptr, *prev_clnt_ptr;

	embms_debug("delete_tmgi_entry_from_table: Enter\n");
@@ -477,13 +473,10 @@ int delete_tmgi_entry_from_table(char *buffer)
 */
int delete_client_entry_from_all_tmgi(char *buffer)
{
	int i;
	struct tmgi_to_clnt_info_update *info_update;
	char message_buffer[sizeof(struct tmgi_to_clnt_info_update)];
	struct clnt_info *temp_client = NULL;
	struct tmgi_to_clnt_info *tmgi = NULL;
	struct list_head *tmgi_entry_ptr, *prev_tmgi_entry_ptr;
	struct list_head *clnt_ptr, *prev_clnt_ptr;

	/* We use this function when we want to delete any
	 * client entry from all TMGI entries. This scenario
@@ -574,18 +567,11 @@ int delete_client_entry_from_all_tmgi(char *buffer)
 */
int add_client_entry_to_table(char *buffer)
{
	int i, ret;
	int ret;
	struct tmgi_to_clnt_info_update *info_update;
	char message_buffer[sizeof(struct tmgi_to_clnt_info_update)];
	struct clnt_info *new_client = NULL;
	struct clnt_info *temp_client = NULL;
	struct tmgi_to_clnt_info *new_tmgi = NULL;
	struct tmgi_to_clnt_info *tmgi = NULL;
	struct list_head *tmgi_entry_ptr, *prev_tmgi_entry_ptr;
	struct list_head *clnt_ptr, *prev_clnt_ptr;
	struct neighbour *neigh_entry;
	struct in_device *iface_dev;
	struct in_ifaddr *iface_info;

	embms_debug("add_client_entry_to_table: Enter\n");

@@ -699,13 +685,9 @@ int add_client_entry_to_table(char *buffer)
 */
int delete_client_entry_from_table(char *buffer)
{
	int i;
	struct tmgi_to_clnt_info_update *info_update;
	char message_buffer[sizeof(struct tmgi_to_clnt_info_update)];
	struct clnt_info *temp_client = NULL;
	struct tmgi_to_clnt_info *temp_tmgi = NULL;
	struct list_head *tmgi_entry_ptr, *prev_tmgi_entry_ptr;
	struct list_head *clnt_ptr, *prev_clnt_ptr;

	embms_debug("delete_client_entry_from_table: Enter\n");

@@ -796,11 +778,10 @@ int delete_client_entry_from_table(char *buffer)
 * Return: Success if functoin call returns SUCCESS, error otherwise.
 */

int embms_device_ioctl(struct file *file, unsigned int ioctl_num,
long embms_device_ioctl(struct file *file, unsigned int ioctl_num,
			unsigned long ioctl_param)
{
	int i, ret, error;
	char *temp;
	int ret;
	char buffer[BUF_LEN];
	struct in_device *iface_dev;
	struct in_ifaddr *iface_info;