staging: ft1000: Remove unnecessary assignment.
authorMarek Belisko <marek.belisko@open-nandra.com>
Thu, 3 Feb 2011 10:07:54 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 20:43:44 +0000 (12:43 -0800)
dsp_img_info->version and requested_version have same type
so additional temporary variable creation could be omitted
because variables could be compares directly.

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ft1000/ft1000-usb/ft1000_download.c

index 7c4749ae1ea305b9e548a4b95471c94289cf6a08..1797c4da91dff8d9ee070a42035ea4737517fa9f 100644 (file)
@@ -1072,16 +1072,8 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart,
                                             image < file_hdr->nDspImages;
                                             image++) {
 
-                                               temp =
-                                                   (u16) (dsp_img_info->
-                                                          version);
-                                               templong = temp;
-                                               temp =
-                                                   (u16) (dsp_img_info->
-                                                          version >> 16);
-                                               templong |= (temp << 16);
-                                               if (templong ==
-                                                   (u32) requested_version) {
+                                               if (dsp_img_info->version ==
+                                                   requested_version) {
                                                        correct_version = TRUE;
                                                        DEBUG
                                                            ("FT1000:download: correct_version is TRUE\n");
This page took 0.025511 seconds and 5 git commands to generate.