powerpc: remove unused variable in emulate_fp_pair
regs is not used in emulate_fp_pair so remove it. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
parent
c1cb299ead
commit
b887ec620a
|
@ -363,8 +363,8 @@ static int emulate_multiple(struct pt_regs *regs, unsigned char __user *addr,
|
||||||
* Only POWER6 has these instructions, and it does true little-endian,
|
* Only POWER6 has these instructions, and it does true little-endian,
|
||||||
* so we don't need the address swizzling.
|
* so we don't need the address swizzling.
|
||||||
*/
|
*/
|
||||||
static int emulate_fp_pair(struct pt_regs *regs, unsigned char __user *addr,
|
static int emulate_fp_pair(unsigned char __user *addr, unsigned int reg,
|
||||||
unsigned int reg, unsigned int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
char *ptr = (char *) ¤t->thread.TS_FPR(reg);
|
char *ptr = (char *) ¤t->thread.TS_FPR(reg);
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
@ -759,7 +759,7 @@ int fix_alignment(struct pt_regs *regs)
|
||||||
|
|
||||||
/* Special case for 16-byte FP loads and stores */
|
/* Special case for 16-byte FP loads and stores */
|
||||||
if (nb == 16)
|
if (nb == 16)
|
||||||
return emulate_fp_pair(regs, addr, reg, flags);
|
return emulate_fp_pair(addr, reg, flags);
|
||||||
|
|
||||||
/* If we are loading, get the data from user space, else
|
/* If we are loading, get the data from user space, else
|
||||||
* get it from register values
|
* get it from register values
|
||||||
|
|
Loading…
Reference in New Issue