diff --git a/src/opensuperclone/clone_gui2.c b/src/opensuperclone/clone_gui2.c index b3b583a..108fe29 100644 --- a/src/opensuperclone/clone_gui2.c +++ b/src/opensuperclone/clone_gui2.c @@ -2298,7 +2298,6 @@ void get_source_from_button_ccc(GtkWidget *w, gpointer data) { new_source_ccc = GPOINTER_TO_INT(data); g_print("selection=%d \n", new_source_ccc); - w = w; } void choose_destination_drive_ccc(void) @@ -2449,7 +2448,6 @@ void get_destination_from_button_ccc(GtkWidget *w, gpointer data) { new_destination_ccc = GPOINTER_TO_INT(data); g_print("selection=%d \n", new_destination_ccc); - w = w; } void choose_image_ccc(void) @@ -5523,7 +5521,6 @@ void get_usb_from_button_ccc(GtkWidget *w, gpointer data) { new_usb_ccc = GPOINTER_TO_INT(data); g_print("selection=%d \n", new_usb_ccc); - w = w; } void clear_usbr1_ccc(void) diff --git a/src/opensuperclone/clone_gui3.c b/src/opensuperclone/clone_gui3.c index c97160a..1dff9e2 100644 --- a/src/opensuperclone/clone_gui3.c +++ b/src/opensuperclone/clone_gui3.c @@ -2296,7 +2296,6 @@ void get_source_from_button_ccc(GtkWidget *w, gpointer data) { new_source_ccc = GPOINTER_TO_INT(data); g_print("selection=%d \n", new_source_ccc); - w = w; } void choose_destination_drive_ccc(void) @@ -2448,7 +2447,6 @@ void get_destination_from_button_ccc(GtkWidget *w, gpointer data) { new_destination_ccc = GPOINTER_TO_INT(data); g_print("selection=%d \n", new_destination_ccc); - w = w; } void choose_image_ccc(void) @@ -5498,7 +5496,6 @@ void get_usb_from_button_ccc(GtkWidget *w, gpointer data) { new_usb_ccc = GPOINTER_TO_INT(data); g_print("selection=%d \n", new_usb_ccc); - w = w; } void clear_usbr1_ccc(void) diff --git a/src/opensuperclone/commands.c b/src/opensuperclone/commands.c index 2ff2283..3e4c1b9 100644 --- a/src/opensuperclone/commands.c +++ b/src/opensuperclone/commands.c @@ -7292,8 +7292,6 @@ int send_usb_control_msg_ccc(bool perform_check, unsigned int line_number, char int usb_raw_read_ccc(bool perform_check, unsigned int line_number, char *rest_of_line) { - line_number = line_number; - rest_of_line = rest_of_line; if (!perform_check) { return_value_ccc = do_usb_raw_read_ccc(usb_timeout_ccc); @@ -7304,8 +7302,6 @@ int usb_raw_read_ccc(bool perform_check, unsigned int line_number, char *rest_of int usb_raw_write_ccc(bool perform_check, unsigned int line_number, char *rest_of_line) { - line_number = line_number; - rest_of_line = rest_of_line; if (!perform_check) { return_value_ccc = do_usb_raw_write_ccc(usb_timeout_ccc); @@ -7316,8 +7312,6 @@ int usb_raw_write_ccc(bool perform_check, unsigned int line_number, char *rest_o int usb_reset_ccc(bool perform_check, unsigned int line_number, char *rest_of_line) { - line_number = line_number; - rest_of_line = rest_of_line; if (!perform_check) { return_value_ccc = do_usb_reset_ccc(); diff --git a/src/opensuperclone/io.c b/src/opensuperclone/io.c index c83e62e..6042003 100644 --- a/src/opensuperclone/io.c +++ b/src/opensuperclone/io.c @@ -2221,11 +2221,6 @@ int ahci_rw_ccc(int command_type, int write_bit) return 0; } } - else - { - command_type = command_type; - write_bit = write_bit; - } return 0; } @@ -2375,7 +2370,6 @@ int do_ata_dma_read_ccc(int command_type) } else { - command_type = command_type; sprintf(tempmessage_ccc, "ERROR: DMA not allowed in free version.\n"); if (superclone_ccc) { @@ -2709,7 +2703,6 @@ int do_ata_dma_write_ccc(int command_type) } else { - command_type = command_type; sprintf(tempmessage_ccc, "ERROR: DMA not allowed in free version.\n"); if (superclone_ccc) { @@ -7966,10 +7959,6 @@ int identify_device_ahci_ccc(int count) memset(ccc_buffer_ccc, 0, ccc_main_buffer_size_ccc); } - else - { - count = count; - } return (0); } @@ -10224,7 +10213,6 @@ int disable_fis_ccc(unsigned long long time) } else { - time = time; timeout = 0; } return (timeout); @@ -10263,7 +10251,6 @@ int enable_fis_ccc(unsigned long long time) } else { - time = time; timeout = 0; } return (timeout); @@ -10302,7 +10289,6 @@ int disable_start_ccc(unsigned long long time) } else { - time = time; timeout = 0; } return (timeout); @@ -10341,7 +10327,6 @@ int enable_start_ccc(unsigned long long time) } else { - time = time; timeout = 0; } return (timeout); @@ -10379,7 +10364,6 @@ int enable_command_issue_ccc(unsigned long long time) } else { - time = time; timeout = 0; } return (timeout); diff --git a/src/opensuperclone/opensuperclone.c b/src/opensuperclone/opensuperclone.c index 371a803..1731d2b 100644 --- a/src/opensuperclone/opensuperclone.c +++ b/src/opensuperclone/opensuperclone.c @@ -4844,7 +4844,7 @@ int do_fill_ccc(int status, long long mask) { write_size = destination_sectors - current_position_ccc; } - int ret = ret = write_chunk_ccc(current_position_ccc, write_size); + int ret = write_chunk_ccc(current_position_ccc, write_size); if (ret) { // write error @@ -13327,7 +13327,6 @@ int process_source_ccc(void) if (!data_read_from_log_ccc) { sector_size_ccc = bytes_per_sector_ccc; - sector_offset = sector_offset; if (superbyte_ccc[23] == 0x5b) { block_size_ccc = logical_sectors_per_physical; @@ -13673,7 +13672,6 @@ int process_source_ccc(void) if (!data_read_from_log_ccc) { sector_size_ccc = blocksize; - sector_offset = sector_offset; if (superbyte_ccc[23] == 0x5b) { block_size_ccc = logical_sectors_per_physical; @@ -13767,7 +13765,6 @@ int process_source_ccc(void) if (!data_read_from_log_ccc) { sector_size_ccc = bytes_per_log_sec; - sector_offset = sector_offset; if (superbyte_ccc[23] == 0x5b) { block_size_ccc = blocksize;