Skip to content

Commit 0a1d16c

Browse files
lipengcheng8mathieupoirier
authored andcommitted
coresight: no need to do the forced type conversion
activated and enable are already unsigned type, no need to change them to unsigned. Signed-off-by: Li Pengcheng <lipengcheng8@huawei.com> Signed-off-by: Li Zhong <lizhong11@hisilicon.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit e8dc27d0ee458f9622b50e2d9476719b3a0e686b)
1 parent 3f44406 commit 0a1d16c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/hwtracing/coresight/coresight.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ static ssize_t enable_sink_show(struct device *dev,
514514
{
515515
struct coresight_device *csdev = to_coresight_device(dev);
516516

517-
return scnprintf(buf, PAGE_SIZE, "%u\n", (unsigned)csdev->activated);
517+
return scnprintf(buf, PAGE_SIZE, "%u\n", csdev->activated);
518518
}
519519

520520
static ssize_t enable_sink_store(struct device *dev,
@@ -544,7 +544,7 @@ static ssize_t enable_source_show(struct device *dev,
544544
{
545545
struct coresight_device *csdev = to_coresight_device(dev);
546546

547-
return scnprintf(buf, PAGE_SIZE, "%u\n", (unsigned)csdev->enable);
547+
return scnprintf(buf, PAGE_SIZE, "%u\n", csdev->enable);
548548
}
549549

550550
static ssize_t enable_source_store(struct device *dev,

0 commit comments

Comments
 (0)