mirror of
https://github.com/ISpillMyDrink/OpenSuperClone.git
synced 2026-08-25 12:36:30 +00:00
Remove all instances of variable self-assignment.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user