I think you missed some information, it would make more sense if f(x) = (x^2-4)/(x-2) if x≠2 or m if x=2 in which case you compute the limit of the function for x -> 2 by the left and x -> 2 by the right which is 4 because
(x^2-4)/(x-2) => (x+2)(x-2)/(x-2) => x+2 so the limit in 2 is 4.
Thus the function is continuous for m=4