staging: rts5208: Remove unnecessary parentheses
Removes unnecessary parentheses from an expression of the form &(x). Issue found by checkpatch. Signed-off-by: Rehas Sachdeva <aquannie@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ec9d0754e0
commit
c86bdd474a
|
@ -2465,7 +2465,7 @@ static u16 ms_get_l2p_tbl(struct rtsx_chip *chip, int seg_no, u16 log_off)
|
||||||
if (!ms_card->segment)
|
if (!ms_card->segment)
|
||||||
return 0xFFFF;
|
return 0xFFFF;
|
||||||
|
|
||||||
segment = &(ms_card->segment[seg_no]);
|
segment = &ms_card->segment[seg_no];
|
||||||
|
|
||||||
if (segment->l2p_table)
|
if (segment->l2p_table)
|
||||||
return segment->l2p_table[log_off];
|
return segment->l2p_table[log_off];
|
||||||
|
@ -2482,7 +2482,7 @@ static void ms_set_l2p_tbl(struct rtsx_chip *chip,
|
||||||
if (!ms_card->segment)
|
if (!ms_card->segment)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
segment = &(ms_card->segment[seg_no]);
|
segment = &ms_card->segment[seg_no];
|
||||||
if (segment->l2p_table)
|
if (segment->l2p_table)
|
||||||
segment->l2p_table[log_off] = phy_blk;
|
segment->l2p_table[log_off] = phy_blk;
|
||||||
}
|
}
|
||||||
|
@ -2494,7 +2494,7 @@ static void ms_set_unused_block(struct rtsx_chip *chip, u16 phy_blk)
|
||||||
int seg_no;
|
int seg_no;
|
||||||
|
|
||||||
seg_no = (int)phy_blk >> 9;
|
seg_no = (int)phy_blk >> 9;
|
||||||
segment = &(ms_card->segment[seg_no]);
|
segment = &ms_card->segment[seg_no];
|
||||||
|
|
||||||
segment->free_table[segment->set_index++] = phy_blk;
|
segment->free_table[segment->set_index++] = phy_blk;
|
||||||
if (segment->set_index >= MS_FREE_TABLE_CNT)
|
if (segment->set_index >= MS_FREE_TABLE_CNT)
|
||||||
|
@ -2509,7 +2509,7 @@ static u16 ms_get_unused_block(struct rtsx_chip *chip, int seg_no)
|
||||||
struct zone_entry *segment;
|
struct zone_entry *segment;
|
||||||
u16 phy_blk;
|
u16 phy_blk;
|
||||||
|
|
||||||
segment = &(ms_card->segment[seg_no]);
|
segment = &ms_card->segment[seg_no];
|
||||||
|
|
||||||
if (segment->unused_blk_cnt <= 0)
|
if (segment->unused_blk_cnt <= 0)
|
||||||
return 0xFFFF;
|
return 0xFFFF;
|
||||||
|
@ -2538,7 +2538,7 @@ static int ms_arbitrate_l2p(struct rtsx_chip *chip, u16 phy_blk,
|
||||||
u16 tmp_blk;
|
u16 tmp_blk;
|
||||||
|
|
||||||
seg_no = (int)phy_blk >> 9;
|
seg_no = (int)phy_blk >> 9;
|
||||||
segment = &(ms_card->segment[seg_no]);
|
segment = &ms_card->segment[seg_no];
|
||||||
tmp_blk = segment->l2p_table[log_off];
|
tmp_blk = segment->l2p_table[log_off];
|
||||||
|
|
||||||
if (us1 != us2) {
|
if (us1 != us2) {
|
||||||
|
@ -2602,7 +2602,7 @@ static int ms_build_l2p_tbl(struct rtsx_chip *chip, int seg_no)
|
||||||
else
|
else
|
||||||
table_size = 496;
|
table_size = 496;
|
||||||
|
|
||||||
segment = &(ms_card->segment[seg_no]);
|
segment = &ms_card->segment[seg_no];
|
||||||
|
|
||||||
if (!segment->l2p_table) {
|
if (!segment->l2p_table) {
|
||||||
segment->l2p_table = vmalloc(table_size * 2);
|
segment->l2p_table = vmalloc(table_size * 2);
|
||||||
|
@ -3760,7 +3760,7 @@ static int ms_prepare_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk,
|
||||||
int ms_delay_write(struct rtsx_chip *chip)
|
int ms_delay_write(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
struct ms_info *ms_card = &chip->ms_card;
|
struct ms_info *ms_card = &chip->ms_card;
|
||||||
struct ms_delay_write_tag *delay_write = &(ms_card->delay_write);
|
struct ms_delay_write_tag *delay_write = &ms_card->delay_write;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
if (delay_write->delay_write_flag) {
|
if (delay_write->delay_write_flag) {
|
||||||
|
@ -3806,7 +3806,7 @@ static int ms_rw_multi_sector(struct scsi_cmnd *srb, struct rtsx_chip *chip,
|
||||||
u8 start_page, end_page = 0, page_cnt;
|
u8 start_page, end_page = 0, page_cnt;
|
||||||
u8 *ptr;
|
u8 *ptr;
|
||||||
#ifdef MS_DELAY_WRITE
|
#ifdef MS_DELAY_WRITE
|
||||||
struct ms_delay_write_tag *delay_write = &(ms_card->delay_write);
|
struct ms_delay_write_tag *delay_write = &ms_card->delay_write;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ms_set_err_code(chip, MS_NO_ERROR);
|
ms_set_err_code(chip, MS_NO_ERROR);
|
||||||
|
@ -4696,7 +4696,7 @@ SetICVFinish:
|
||||||
|
|
||||||
void ms_cleanup_work(struct rtsx_chip *chip)
|
void ms_cleanup_work(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
struct ms_info *ms_card = &(chip->ms_card);
|
struct ms_info *ms_card = &chip->ms_card;
|
||||||
|
|
||||||
if (CHK_MSPRO(ms_card)) {
|
if (CHK_MSPRO(ms_card)) {
|
||||||
if (ms_card->seq_mode) {
|
if (ms_card->seq_mode) {
|
||||||
|
@ -4761,7 +4761,7 @@ int ms_power_off_card3v3(struct rtsx_chip *chip)
|
||||||
|
|
||||||
int release_ms_card(struct rtsx_chip *chip)
|
int release_ms_card(struct rtsx_chip *chip)
|
||||||
{
|
{
|
||||||
struct ms_info *ms_card = &(chip->ms_card);
|
struct ms_info *ms_card = &chip->ms_card;
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
#ifdef MS_DELAY_WRITE
|
#ifdef MS_DELAY_WRITE
|
||||||
|
|
Loading…
Reference in New Issue