Skip to content

Commit 988001c

Browse files
ColinIanKinggregkh
authored andcommitted
intel_th: Remove redundant initialization of pointer outp
The pointer outp is being initialized with a value that is never read. All the reads of outp occur after outp has neen set to an appropriate value rather than using the first value is initialized with. The assignment is redundant and can be removed. Cleans up clang scan warning: drivers/hwtracing/intel_th/sth.c:73:15: warning: Value stored to 'outp' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Alexander Shishkin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 212886f commit 988001c

File tree

1 file changed

+1
-1
lines changed
  • drivers/hwtracing/intel_th

1 file changed

+1
-1
lines changed

drivers/hwtracing/intel_th/sth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ static ssize_t notrace sth_stm_packet(struct stm_data *stm_data,
7070
struct sth_device *sth = container_of(stm_data, struct sth_device, stm);
7171
struct intel_th_channel __iomem *out =
7272
sth_channel(sth, master, channel);
73-
u64 __iomem *outp = &out->Dn;
7473
unsigned long reg = REG_STH_TRIG;
74+
u64 __iomem *outp;
7575

7676
#ifndef CONFIG_64BIT
7777
if (size > 4)

0 commit comments

Comments
 (0)