drm/nouveau: remove unused function
Subsystems (3)
PATCH 1/1 drm/nouveau: remove unused function
coverity.com reported that memset was using a buffer of size 0, on checking the code it turned out that the function was not being used. So remove it.
--- drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h | 2 -- drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c | 13 ------------- 2 files changed, 15 deletions(-)
drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/pmu.h +0 -2
@@ -4,8 +4,6 @@ struct nvbios_pmuT { };u32 nvbios_pmuTe (struct nvkm_bios *,u8 *ver,u8 *hdr,u8 *cnt,u8 *len); -u32 nvbios_pmuTp (struct nvkm_bios *,u8 *ver,u8 *hdr,u8 *cnt,u8 *len, -struct nvbios_pmuT *);struct nvbios_pmuE {u8 type;
drivers/gpu/drm/nouveau/nvkm/subdev/bios/pmu.c +0 -13
@@ -62,19 +62,6 @@ nvbios_pmuTe(struct nvkm_bios *bios, u8 *ver, u8 *hdr, u8 *cnt, u8 *len) }u32 -nvbios_pmuTp (struct nvkm_bios *bios,u8 *ver,u8 *hdr,u8 *cnt,u8 *len, -struct nvbios_pmuT *info) -{ -u32 data =nvbios_pmuTe (bios, ver, hdr, cnt, len); -memset (info,0x00 ,sizeof (*info)); -switch (!!data * *ver) { -default : -break ; - } -return data; -} - -u32 nvbios_pmuEe (struct nvkm_bios *bios,int idx,u8 *ver,u8 *hdr) {u8 cnt, len;
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Sudip Mukherjee
coverity.com reported that memset was using a buffer of size 0, on checking the code it turned out that the function was not being used. So remove it.
Signed-off-by Sudip Mukherjee <[email protected]>---
A gentle ping.
regards
sudip
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Samuel Pitoiset
Reviewed-byQuoted 8 lines · Sudip Mukherjee
Quoted 6 lines · Sudip Mukherjee
coverity.com reported that memset was using a buffer of size 0, on checking the code it turned out that the function was not being used. So remove it.
Signed-off-by Sudip Mukherjee <[email protected]>---
A gentle ping.
Good catch!
Thanks for reporting this, but the commit message should be something like:
"bios: remove unused nvbios_pmuTp() function"
The next time, don't forget to send patches to [email protected]. ;)
This patch is:
Quoted 7 lines
regards
sudip
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Sudip Mukherjee
coverity.com reported that memset was using a buffer of size 0, on checking the code it turned out that the function was not being used. So remove it.
Signed-off-by Sudip Mukherjee <[email protected]>---
Hi Ben,
A gentle ping.
regards
sudip
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel