diff options
| author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-29 10:29:40 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-03-29 10:29:40 -0400 |
| commit | 05fa38fd63e557d2681b063f053c5b94d9c442e3 (patch) | |
| tree | 24be90903c3bc70a2c55dc92cf7101fba7021d42 /drivers/media/pci | |
| parent | 85709cbf152465c77a9c2de48a6f4ef23c8c3d83 (diff) | |
media: bt8xx: avoid a needless u8 to char conversion
Instead of doing the cast, just change the type to char.
Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci')
| -rw-r--r-- | drivers/media/pci/bt8xx/dst.c | 4 | ||||
| -rw-r--r-- | drivers/media/pci/bt8xx/dst_common.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/pci/bt8xx/dst.c b/drivers/media/pci/bt8xx/dst.c index 3315a6d67edf..e929797206f6 100644 --- a/drivers/media/pci/bt8xx/dst.c +++ b/drivers/media/pci/bt8xx/dst.c | |||
| @@ -1100,8 +1100,8 @@ static int dst_get_device_id(struct dst_state *state) | |||
| 1100 | /* Card capabilities */ | 1100 | /* Card capabilities */ |
| 1101 | state->dst_hw_cap = p_dst_type->dst_feature; | 1101 | state->dst_hw_cap = p_dst_type->dst_feature; |
| 1102 | pr_err("Recognise [%s]\n", p_dst_type->device_id); | 1102 | pr_err("Recognise [%s]\n", p_dst_type->device_id); |
| 1103 | strscpy((char *)state->fw_name, p_dst_type->device_id, | 1103 | strscpy(state->fw_name, p_dst_type->device_id, |
| 1104 | sizeof(state->fw_name)); | 1104 | sizeof(state->fw_name)); |
| 1105 | /* Multiple tuners */ | 1105 | /* Multiple tuners */ |
| 1106 | if (p_dst_type->tuner_type & TUNER_TYPE_MULTI) { | 1106 | if (p_dst_type->tuner_type & TUNER_TYPE_MULTI) { |
| 1107 | switch (use_dst_type) { | 1107 | switch (use_dst_type) { |
diff --git a/drivers/media/pci/bt8xx/dst_common.h b/drivers/media/pci/bt8xx/dst_common.h index 6a2cfdd44e3e..79dec1b1722c 100644 --- a/drivers/media/pci/bt8xx/dst_common.h +++ b/drivers/media/pci/bt8xx/dst_common.h | |||
| @@ -138,7 +138,7 @@ struct dst_state { | |||
| 138 | u32 tuner_type; | 138 | u32 tuner_type; |
| 139 | char *tuner_name; | 139 | char *tuner_name; |
| 140 | struct mutex dst_mutex; | 140 | struct mutex dst_mutex; |
| 141 | u8 fw_name[8]; | 141 | char fw_name[8]; |
| 142 | struct dvb_device *dst_ca; | 142 | struct dvb_device *dst_ca; |
| 143 | }; | 143 | }; |
| 144 | 144 | ||
