diff options
-rw-r--r-- | drivers/media/radio/wl128x/fmdrv_common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/radio/wl128x/fmdrv_common.c b/drivers/media/radio/wl128x/fmdrv_common.c index 704397f3c106..ebc73b034249 100644 --- a/drivers/media/radio/wl128x/fmdrv_common.c +++ b/drivers/media/radio/wl128x/fmdrv_common.c | |||
@@ -689,7 +689,6 @@ static void fm_rx_update_af_cache(struct fmdev *fmdev, u8 af) | |||
689 | static void fm_rdsparse_swapbytes(struct fmdev *fmdev, | 689 | static void fm_rdsparse_swapbytes(struct fmdev *fmdev, |
690 | struct fm_rdsdata_format *rds_format) | 690 | struct fm_rdsdata_format *rds_format) |
691 | { | 691 | { |
692 | u8 byte1; | ||
693 | u8 index = 0; | 692 | u8 index = 0; |
694 | u8 *rds_buff; | 693 | u8 *rds_buff; |
695 | 694 | ||
@@ -701,9 +700,7 @@ static void fm_rdsparse_swapbytes(struct fmdev *fmdev, | |||
701 | if (fmdev->asci_id != 0x6350) { | 700 | if (fmdev->asci_id != 0x6350) { |
702 | rds_buff = &rds_format->data.groupdatabuff.buff[0]; | 701 | rds_buff = &rds_format->data.groupdatabuff.buff[0]; |
703 | while (index + 1 < FM_RX_RDS_INFO_FIELD_MAX) { | 702 | while (index + 1 < FM_RX_RDS_INFO_FIELD_MAX) { |
704 | byte1 = rds_buff[index]; | 703 | swap(rds_buff[index], rds_buff[index + 1]); |
705 | rds_buff[index] = rds_buff[index + 1]; | ||
706 | rds_buff[index + 1] = byte1; | ||
707 | index += 2; | 704 | index += 2; |
708 | } | 705 | } |
709 | } | 706 | } |