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

Commit 114a06ae authored by Marek Belisko's avatar Marek Belisko Committed by Greg Kroah-Hartman
Browse files

staging: ft1000: Fix coding style in get_request_value() function.

parent c3ed5d2f
Loading
Loading
Loading
Loading
+17 −21
Original line number Diff line number Diff line
@@ -411,25 +411,21 @@ static long get_request_value(struct ft1000_device *ft1000dev)
	u32 status;
	struct ft1000_info *pft1000info = netdev_priv(ft1000dev->net);


       if ( pft1000info->bootmode == 1)
       {
	   status = fix_ft1000_read_dpram32(ft1000dev, DWNLD_MAG1_SIZE_LOC, (u8 *)&value);
	if (pft1000info->bootmode == 1) {
		status = fix_ft1000_read_dpram32(ft1000dev,
				DWNLD_MAG1_SIZE_LOC, (u8 *)&value);
		value = ntohl(value);
       }
       else
       {
	   status = ft1000_read_dpram16(ft1000dev, DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 0);
	} else	{
		status = ft1000_read_dpram16(ft1000dev,
				DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 0);
		value = tempword;
           status = ft1000_read_dpram16(ft1000dev, DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 1);
		status = ft1000_read_dpram16(ft1000dev,
				DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 1);
		value |= (tempword << 16);
		value = ntohl(value);
	}


   //DEBUG("get_request_value: value is %x\n", value);
	return value;

}