[AMD Official Use Only] Reviewed-by: Tao Zhou <tao.zhou1@xxxxxxx> > -----Original Message----- > From: Chai, Thomas <YiPeng.Chai@xxxxxxx> > Sent: Wednesday, January 19, 2022 10:56 AM > To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx > Cc: Chai, Thomas <YiPeng.Chai@xxxxxxx>; Zhang, Hawking > <Hawking.Zhang@xxxxxxx>; Zhou1, Tao <Tao.Zhou1@xxxxxxx>; Clements, > John <John.Clements@xxxxxxx>; Chai, Thomas <YiPeng.Chai@xxxxxxx> > Subject: [PATCH 1/3] drm/amdgpu: Remove repeated calls > > Remove repeated calls. > > Signed-off-by: yipechai <YiPeng.Chai@xxxxxxx> > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > index 7a1d2bac698e..4992bc554c0c 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > @@ -1704,9 +1704,7 @@ static void amdgpu_ras_log_on_err_counter(struct > amdgpu_device *adev) static void amdgpu_ras_error_status_query(struct > amdgpu_device *adev, > struct ras_query_if *info) > { > - struct amdgpu_ras_block_object *block_obj = > amdgpu_ras_get_ras_block(adev, > - info- > >head.block, > - info- > >head.sub_block_index); > + struct amdgpu_ras_block_object *block_obj; > /* > * Only two block need to query read/write > * RspStatus at current state > -- > 2.25.1